HeaderListView for Android

08.02.2013

Today we’re open sourcing HeaderListView, a library that adds sections and persistent headers to Android’s ListView. Persistent headers are section headers that stay visible at the top of the ListView when you scroll through its section, then go away when you’ve scrolled past the relevant content, exactly like they do on iOS.

The library comes under a BSD license, and contains two classes: HeaderListView which is a replacement for ListView that has persistent headers and SectionAdapter which is an adapter that you can use with any ListView subclass in order to add sections and sections headers.

Checkout the project website to discover the API and download the demo. You can immediately take advantage of the persistent headers by replacing your ListView with HeaderListView and by implmenting a SectionAdapter subclass.