{"id":7,"date":"2009-08-21T18:32:00","date_gmt":"2009-08-21T23:32:00","guid":{"rendered":"http:\/\/jebware.com\/blog\/?p=7"},"modified":"2011-05-28T08:39:54","modified_gmt":"2011-05-28T13:39:54","slug":"virginia-traffic-1-1-1-release-bugfix","status":"publish","type":"post","link":"https:\/\/jebware.com\/blog\/?p=7","title":{"rendered":"Virginia Traffic 1.1.1 Release &#8211; Bugfix"},"content":{"rendered":"<div style=\"text-align: left;\">Today I&#8217;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&#8217;s a quick shot of what the bug looked like before:<\/div>\n<div><\/p>\n<div><img src=\"http:\/\/2.bp.blogspot.com\/_6bX5Cg9lBLY\/So81ZVZrGaI\/AAAAAAAAAQs\/IwE--dssUBA\/s400\/broken.jpg\" style=\"display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 269px; height: 400px;\" border=\"0\" alt=\"\" id=\"BLOGGER_PHOTO_ID_5372571589834119586\" \/><\/p>\n<div style=\"text-align: center;\"><\/div>\n<\/div>\n<div>As you can see, the incident list had moved up to obscure the dropdown and button at the top.  Now here&#8217;s what the screen is supposed to look like:<\/div>\n<div style=\"text-align: center;\"><\/div>\n<div style=\"text-align: center;\"><img src=\"http:\/\/3.bp.blogspot.com\/_6bX5Cg9lBLY\/So81Z4nK1gI\/AAAAAAAAAQ0\/2Yw5A38z2OI\/s400\/fixed.jpg\" style=\"display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 268px; height: 400px;\" border=\"0\" alt=\"\" id=\"BLOGGER_PHOTO_ID_5372571599285966338\" \/><\/div>\n<div>If you&#8217;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&#8230;<\/div>\n<div><\/div>\n<div><\/div>\n<div>I have one big <span class=\"Apple-style-span\"  style=\"color:#33CCFF;\"><span class=\"Apple-style-span\"  style=\"font-family:'courier new';\">LinearLayout<\/span><\/span> that encompasses the whole screen for the main Activity, and I had previous set the <span class=\"Apple-style-span\"  style=\"color:#33CCFF;\"><span class=\"Apple-style-span\"  style=\"font-family:'courier new';\">android:clipChildren<\/span><\/span> property to <span class=\"Apple-style-span\"  style=\"color:#33CCFF;\"><span class=\"Apple-style-span\"  style=\"font-family:'courier new';\">false<\/span><\/span>.  Ooops.  If you look at the <a href=\"http:\/\/developer.android.com\/reference\/android\/view\/ViewGroup.html#attr_android:clipChildren\">documentation<\/a>, this means that child objects aren&#8217;t being limited to drawing within their bounds.  So I had a <span class=\"Apple-style-span\"  style=\"font-family:'courier new';\"><span class=\"Apple-style-span\"  style=\"color:#33CCFF;\">ListView<span class=\"Apple-style-span\"  style=\"font-family:georgia;\"> <\/span><\/span><\/span>that was coloring outside the lines, so to speak.  Every time I scrolled the<span class=\"Apple-style-span\"  style=\"font-family:'courier new';\"> <\/span><span class=\"Apple-style-span\"  style=\"font-family:'courier new';\"><span class=\"Apple-style-span\"  style=\"color:#33CCFF;\">ListView<\/span><\/span>, 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 <span class=\"Apple-style-span\"  style=\"font-family:'courier new';\"><span class=\"Apple-style-span\"  style=\"color:#33CCFF;\">ListView<\/span><\/span>.  Setting <span class=\"Apple-style-span\"  style=\"font-family:'courier new';\"><span class=\"Apple-style-span\"  style=\"color:#33CCFF;\">android:clipChildren<span class=\"Apple-style-span\"  style=\"font-family:georgia;\"> <\/span><\/span><\/span>to <span class=\"Apple-style-span\"  style=\"font-family:'courier new';\"><span class=\"Apple-style-span\"  style=\"color:#33CCFF;\">true<span class=\"Apple-style-span\"  style=\"font-family:georgia;\"> <\/span><\/span><\/span>fixed the problem.<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today I&#8217;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&#8217;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. &hellip; <a href=\"https:\/\/jebware.com\/blog\/?p=7\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Virginia Traffic 1.1.1 Release &#8211; Bugfix&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"twitterCardType":"","cardImageID":0,"cardImage":"","cardTitle":"","cardDesc":"","cardImageAlt":"","cardPlayer":"","cardPlayerWidth":0,"cardPlayerHeight":0,"cardPlayerStream":"","cardPlayerCodec":""},"categories":[4,3],"tags":[13],"_links":{"self":[{"href":"https:\/\/jebware.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7"}],"collection":[{"href":"https:\/\/jebware.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jebware.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jebware.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jebware.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":5,"href":"https:\/\/jebware.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/jebware.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions\/155"}],"wp:attachment":[{"href":"https:\/\/jebware.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jebware.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jebware.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}