Friday, August 21, 2009

Virginia Traffic 1.1.1 Release - Bugfix

Today I'm releasing an update (version 1.1.1) to the Virginia Traffic app which fixes a small bug that had been bothering me for a while. Here's a quick shot of what the bug looked like before:


As you can see, the incident list had moved up to obscure the dropdown and button at the top. Now here's what the screen is supposed to look like:

If you're not an Android developer, thanks for dropping by, and you can stop reading here. The bug is fixed, so please continue to enjoy Virginia Traffic. If you want to know the geeky details, keep going...


I have one big LinearLayout that encompasses the whole screen for the main Activity, and I had previous set the android:clipChildren property to false. Ooops. If you look at the documentation, this means that child objects aren't being limited to drawing within their bounds. So I had a ListView that was coloring outside the lines, so to speak. Every time I scrolled the ListView, I think it had some trouble syncing up between the exact position of the screen and due to some rendering issue was drawing outside of its boundaries in an attempt to have a smoother draw of the ListView. Setting android:clipChildren to true fixed the problem.