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
Propper support to NavController #20
Comments
I pulled off a small trick to do this. You need to do it this way:
What I'm doing is making android think that there's a bottomnavigation that's changing it's state whenever we click on our chip navigator here. Try this and let me know if it solves your problem. |
it is not working for me |
@NIkhilbadveli can u plz write the code in activity file (2) in java plz |
It's pretty straightforward... maybe try online for converting kotlin code to java |
Just facing issue with this line... |
@NIkhilbadveli which itemId is referred above |
.setOnItemSelectedListener(new ChipNavigationBar.OnItemSelectedListener() { Try it this way. |
thx |
itemId is the id of the selection in chip navigation bar. I'm taking that and passing it to bottomnavigationview, which actually does the navigation. |
hi. should i do this? |
Thanks! |
but how do you handle "back" with it , chip navigation view doesn't update its items |
If you set the chip navigation item whenever there's a navigation change, then it should work. |
Is there any update on Navigation support? |
So
OMG thanks so all the above worked properly as you mentioned. |
when I back press at last position ..fragment changed but icon not change.. |
No description provided.
The text was updated successfully, but these errors were encountered: