- Import the HeaderListView module in your Android Studio project.
- Replace your
ListView
withHeaderListView
- Implement a subclass of
SectionAdapter
- Set it to your
HeaderListView
withsetAdapter(SectionAdapter adapter)
HeaderListView
is a list view with sections and with a cool iOS-like "sticky" section headers. Notice that HeaderListView
is not a subclass of Android's ListView
but uses composition. Hence, you will need to call getListView()
to access the underlying ListView
.
- Handle listViews with fast scroll
- See if there are methods to dispatch to mListView