Search code examples
androiddatabaselistviewlarge-data

loading large database in listview


I have a database with about 12000 records which I want to load in a ListView. I'm using BaseAdapter. When I load items in ListView, It's taking so long.
Is there any way to reduce this time, for example I have seen an app that loads only limited numbers of items until the scroll bar reaches the end of ListView, then it loads again more items.


Solution

  • This may be useful, a ListView with load More button:

    http://www.androidhive.info/2012/03/android-listview-with-load-more-button/

    You can also take a look here:

    How can I implement paging in listview in android?