allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.nileshpambhar:HeaderListView:1.0.3'
}
https://github.com/nileshpambhar/HeaderListView/blob/master/Screenshot1.png
- Import the HeaderListView module in your Android Studio project.
- Replace your
ListViewwithHeaderListView - Implement a subclass of
SectionAdapter - Set it to your
HeaderListViewwithsetAdapter(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.