Doist / Doist/RecyclerViewExtensions

StickyHeaders not updating layout with StickyHeaders.ViewSetup

Open
#36 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug irreproducible
Dominant language
Java
Stars
494
Forks
43
PR merge metrics
No merged PRs in 30d

Description

I use StickyHeaders.ViewSetup with setupStickyHeaderView method.
Everything works fine if i scroll RecyclerView very slowly. When i scrolling it fast, bindStickyHeader method in StickyHeadersLinearLayoutManager class replaces my modified header item with original header item. All my changes to the header view in setupStickyHeaderView disappear.

Is it possible to fix this issue?
This issue i can reproduce on Android 9 phone.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with StickyHeadersLinearLayoutManager and its bindStickyHeader method, then inspect how StickyHeaders.ViewSetup and setupStickyHeaderView interact during fast RecyclerView scrolling. Reproduce the issue on an Android 9 device with slow and fast scrolling, and verify that changes made in setupStickyHeaderView remain visible after binding.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.