Android 1.6: strange things happen with UI
For some reason I had the complex layout:
<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" .. <FrameLayout android:layout_height="fill_parent" android:layout_width="fill_parent" ... <ListView android:layout_width="fill_parent" android:layout_height="fill_parent"
ListView scroll worked perfectly on 1.5 and 1.6. At some point of time layout was changed to:
<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" .. <FrameLayout android:layout_height="wrap_content" android:layout_weight="1" android:layout_width="fill_parent" ... <ListView android:layout_width="fill_parent" android:layout_height="fill_parent"
and performance decreased dramatically on 1.6 (looks like x10 worse)… same layout works fine on 1.5. It took me a day to find this problem out.
be careful with layouts!
December 15th, 2009 in
android, xml layout | tags: android 1.6, layout, layout weight, listview performance, performance

