Mobile Zone is brought to you in partnership with:

Alec is a Content Curator at DZone and lives in Raleigh, North Carolina. He is interested in Java and Android programming, and databases of all types. When he's not writing for the NoSQL and IoT Zones, you might find him playing bass guitar, writing short stories where nothing happens, or making stuff in Java. Alec is a DZone Zone Leader and has posted 579 posts at DZone. You can read more from them at their website. View Full User Profile

SuperListView: A Library to Simplify Android's ListView

05.19.2014
| 5060 views |
  • submit to reddit

Android's ListView can be kind of a pain. We've seen some useful resources for it in the past - Antoine Merle's two-part series on the ViewHolder and displaying images, for example - but if you're still trying to improve your ListView experience, you might be interested in Quentin Dommerc's SuperListView.

SuperListView's purpose is pretty straightforward: to simplify Android's ListView. As far as features go, Dommerc lists a few on GitHub:

  • ProgressBar while adapter hasn't been set
  • EmptyView if adapter is empty
  • SwipeRefreshLayout (Google's one)
  • Infinite scrolling, when you reach the X last item, load more of them.
  • Swipe To Dismiss for the SuperListView (doesn't make sense for a gridview) (Thanks Roman Nurik)
  • GridView with SuperGridView

He also includes dependency information, as well as complete usage instructions. Check out the GitHub page for more details and see if you can make ListViews a bit more manageable.