StickyHeaderInterface

Functions

Link copied to clipboard
abstract fun bindHeaderData(header: View, headerPosition: Int)

This method gets called by HeaderItemDecoration to setup the header View.

Link copied to clipboard
abstract fun getHeaderLayout(headerPosition: Int): Int

This method gets called by HeaderItemDecoration to get layout resource id for the header item at specified adapter's position.

Link copied to clipboard
abstract fun getHeaderPositionForItem(itemPosition: Int): Int

This method gets called by HeaderItemDecoration to fetch the position of the header item in the adapter that is used for (represents) item at specified position.

Link copied to clipboard
abstract fun isHeader(itemPosition: Int): Boolean

This method gets called by HeaderItemDecoration to verify whether the item represents a header.