Absar Alam
Absar Alam

Reputation: 96

Loading thousand of data in a listview without loading all the data at the same time

Actually, I need a Android ListView which can load thousands of data, but the problem is that if i will load the data simply in ListView it will short the memory. So I need a dynamic listview which loads the data only which are visible to the user. Is it Possible?

Upvotes: 0

Views: 1010

Answers (3)

Neelay Srivastava
Neelay Srivastava

Reputation: 100

Yes, it is possible by using Recyclerview. Make a list view in this only the displayed data is used or it makes intent only for the displayed part
http://www.androidhive.info/2016/01/android-working-with-recycler-view/

Here is a link that may help you - https://developer.android.com/training/material/lists-cards.html

Upvotes: 1

Quang Nguyễn
Quang Nguyễn

Reputation: 21

you can try ListView dynamically Load more . check http://www.mysamplecode.com/2012/07/android-listview-load-more-data.html

Upvotes: 1

Maxim G
Maxim G

Reputation: 1489

ListView has already had build-in recycle view mechanism. Just don't ignore ViewHolder pattern. Check example.

You can try RecyclerView if you really need animation.

Upvotes: 1

Related Questions