-
public interface StickyHeaderCallbacksAdds sticky headers capabilities to any RecyclerView.Adapter combined with StickyHeaderLinearLayoutManager.
-
-
Method Summary
Modifier and Type Method Description abstract BooleanisStickyHeader(Integer position)Return true if the view at the specified position needs to be sticky else false. UnitsetupStickyHeaderView(View stickyHeader)Callback to adjusts any necessary properties of the stickyHeader view that is being used as a sticky, eg. UnitteardownStickyHeaderView(View stickyHeader)Callback to revert any properties changed in setupStickyHeaderView. -
-
Method Detail
-
isStickyHeader
abstract Boolean isStickyHeader(Integer position)
Return true if the view at the specified position needs to be sticky else false.
-
setupStickyHeaderView
Unit setupStickyHeaderView(View stickyHeader)
Callback to adjusts any necessary properties of the stickyHeader view that is being used as a sticky, eg. elevation. Default behaviour is no-op.
teardownStickyHeaderView will be called sometime after this method and before any other calls to this method go through.
-
teardownStickyHeaderView
Unit teardownStickyHeaderView(View stickyHeader)
Callback to revert any properties changed in setupStickyHeaderView. Default behaviour is no-op.
Called after setupStickyHeaderView.
-
-
-
-