1

ListView with 20 items lags when scrolling

view story
linux-howto

http://stackoverflow.com – Android 4.1.2. I have a LinearLayout with a ListView child. I add 20 rows to this listview, with a custom row layout with three TextView controls. Half of these rows are visible, so I need to scroll to see the rest. The problem is that the app seems to hang for a couple of seconds when I start scrolling from the top or from the bottom (in the middle it seems ok). I understand there are several optimizations that can be used. So far, I have tried this: In my custom ArrayAdapter I'm using a ViewHolder to avoid calling findViewById. In getView(), the LayoutInflater is only used when convertVie (HowTos)