mohsen1993
mohsen1993

Reputation: 1

android dynamic listview with scroll

I'm creating an android book that use data from database(sqlite) and has six season. my data is about 1MB and for loading data on listview is slow.I wanna to put a dynamic listview for my project that load 10 item on listview with scrolling each time. please help me

Upvotes: 0

Views: 92

Answers (1)

Divers
Divers

Reputation: 9569

ListView actually keep in memory items only visible for users - check it for better understanding - http://android.amberfog.com/?p=296.

I think you are talking about lazy loading data from sqlite, so just fetch next 20 (or whatever) items when user scrolled to last item.

I recommend you to switch to RecyclerView. Please check that article for implementation of endless scrolling with RecyclerView.

Upvotes: 1

Related Questions