- Fix issue where a previously stickied header is not detached after adapter updated with a sticky header at position 0 which also happens to be the first visible position.
- Fix crash when adapter data set is null
- Remove
<application>
tag from library manifest.
- Clear attached header, if any, when a new
LayoutManager
is set on theRecyclerView
.
- Add option to set a listener to notify when headers are attached or detached.
- Fixes a crash when current sticky header is removed from the adapter data set and
notifyDataSetChanged
is called
- StickyHeaderHandler now only needs to provide the dataset supplied to the RecyclerView.Adapter
- Sticky headers will have margins applied if the RecyclerView has padding.
- If orientation is Vertical and there is top padding (or Horizontal and left padding), the RecyclerView must have
clipToPadding
set tofalse
.- If you need top (or left if Horizontal) separation, use margin instead of padding on the RecyclerView.
- If orientation is Vertical and there is top padding (or Horizontal and left padding), the RecyclerView must have