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

Auto hide/show with CollapsingToolbarLayout #64

Open
MRezaNasirloo opened this issue Jun 17, 2017 · 5 comments
Open

Auto hide/show with CollapsingToolbarLayout #64

MRezaNasirloo opened this issue Jun 17, 2017 · 5 comments

Comments

@MRezaNasirloo
Copy link

MRezaNasirloo commented Jun 17, 2017

The auto hide/show does not work when adding app:layout_scrollFlags="scroll" to CollapsingToolbarLayout

Looks like other button navigation libraries have this issue too.

@ipereziriarte
Copy link

👍 It's happening to me too. Any chance to fix this?

@MRezaNasirloo
Copy link
Author

@ipereziriarte You can fix it by adding a onScrollListener to your recyclerview or whatever that you have which scrolls, then listen for up and down scroll events and show/hide it there. It's not elegant but it works.

@ipereziriarte
Copy link

@MRezaNasirloo Thanks! Nice workaround :)

@erichps114
Copy link

How to show/hide the bottom navigation programatically? I couldn't find any docs

@julianctni
Copy link

@erichps114 by calling setExpanded(boolean expanded, boolean animate) on the BottomNavigation Object. I tried it inside the onScrolled Method of OnScrollListener in RecyclerView. But it seems, that there is always a small delay when hiding/showing the bottom nav :/

Would be nice getting this fixed!

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

4 participants