Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Detect which header is being sticky #1374

Open
DawnNguyenAhiho opened this issue Mar 7, 2024 · 0 comments
Open

[Question] Detect which header is being sticky #1374

DawnNguyenAhiho opened this issue Mar 7, 2024 · 0 comments

Comments

@DawnNguyenAhiho
Copy link

Hi. I'm using epoxy to create my app. My app has 2 section, so that I create 2 sticky header using StickyHeaderLinearLayoutManager. But the problem is my header has a search button. I only want the search button visible on the sticky header (which mean the top header of the RecycleView) and not the header at the middle. Assume that I have header 1 => some element => header 2 => some more element. At first, the header 1 is on the top and "sticky". When I scroll up, the header 2 goes up and then push the header 1 out of the screen. Now the header 2 is "sticky". I want to detect when the header 2 is pushing the header 1 out, and then I can update the visibility for the search button (at header 1 the search button gone, at header 2, the search button visible).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant