Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.12 KB

README.md

File metadata and controls

19 lines (14 loc) · 1.12 KB

build status license StackedStickyHeaders

An android library for multiple hierarchically related section headers that stick to the top of a ListView.

Logo

Usage

  1. Add the StackedStickyHeadersView either to an XML layout file, or programmatically.
  2. Extend a StackedStickyHeadersAdapter and set it as an adapter of the view by calling StackedStickyHeadersView.setAdapter(StackedStickyHeadersAdapter listAdapter)
  3. Make sure to implement the getHeadersViewTypeIds() and getHeadersViewsHeights() methods of the StackedStickyHeadersAdapter
  4. Use StackedStickyHeadersView.getListView() to access the internal ListView for setting click listeners for items

Possible future improvements

  • remove the explicit height of the sticky headers and calculate it dynamically on the go
  • support for RecyclerView
  • click listeners for the sticky headers