Skip to content Skip to sidebar Skip to footer

Listview Scrolls Quite Junky When Therre Are Different Row Heights

hi i've some problems with listview. My list do have very different cell heights, some of them are even bigger then the height of the screen. What I found out, that listview scroll

Solution 1:

ListViews recycle, the views that have been already inflated. Since in your case the Listview has items which vary in height, it is better to write your own recycler.

If you have specific categories as in X, Y and Z then you can check the layout type by adding an attribute to the layout as a tag, and inflating conditionally. But the best way to do this is write your own recycler.

Post a Comment for "Listview Scrolls Quite Junky When Therre Are Different Row Heights"