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

Hidden menu item (visibility gone) still takes space in the Bottom Navigation #25

Closed
umarhussain15 opened this issue May 14, 2017 · 4 comments

Comments

@umarhussain15
Copy link

image
I have 4 menu items in the bottom navigation but I have set first item's visibility gone. But this is not allowing the remaining 3 icons to take full remaining space.
Can you suggest a solution for this issue?
How to set effect for the hidden icon like there are only three icons?
My use case is:
having 4 views in view pager, 1st view is not related to the bottom navigation, remaining 3 are selected with the bottom navigation.
But setting 3 items in navigation, will show the first item as selected but view pager will show the view not related to the selected item.
Thank you.

@ittianyu
Copy link
Owner

Why not just put 3 items in bottom ?
And you need use setOnNavigationItemSelectedListener instead of setUpWithViewPager. So you could control which pager to show when selected.

@TheReprator
Copy link

TheReprator commented Jun 1, 2017

@ittianyu , First thanks for this library, would you please elaborate your answer as i am not using viewpager?

@ittianyu
Copy link
Owner

ittianyu commented Jun 1, 2017

Oh Sorry, I was misread it. You can pull the last code to see the demo.

@TheReprator
Copy link

Yes, thanks it worked

@ittianyu ittianyu closed this as completed Jun 4, 2017
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

3 participants