aspose file tools*
The moose likes Android and the fly likes Pagination in ListView Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Pagination in ListView" Watch "Pagination in ListView" New topic
Author

Pagination in ListView

Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1397
    
    6

I have to show n number of items in a ListView, so sometimes the vertical scrolling becomes too long. Is there any way to paginate the display. For e.g. initially it displays first 5 items in the list, and on any user interaction it displays the next 5 or previous 5 items.


Swastik
Misha van Tol
Ranch Hand

Joined: Jan 02, 2010
Posts: 56

Not in the API as far as I know, but you can of course manually fill the ArrayList that's attached to the adapter with various items based upon some user action.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pagination in ListView
 
Similar Threads
Create Custom List
Android - Using Custom Views to Read Database Data - Slows Down Drastically!
Can not click on listView
How to add color and margin to custom ArrayAdapter
How to Refresh ListView in Android