简体   繁体   中英

Listview disable scrolling optimization

In listview when it is scrolled, the top item which is going out of scene is attached at bottom which is coming in to scene.

Is this behaviour fixed or we can disable this feature.

In my listview, i got only 10 items so this feature is not that important to have.

If you ignore the " convertView " parameter on your Adapter.getView() , the old view will not be used, but it will be regenerated when you scroll back.

If you don't want this behavior, use a LinearLayout.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM