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

Updated demo code in NavControllerActivity and added missing documentation for Navigation Components. #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Vaibhav2002
Copy link

Fixes #48

Changes

  • Updated code in demo NavControllerActivity which now works in latest version of navigation components, old code did not..
  • Added documentation for setting up bottom bar with navigation components.
  • Linted whole codebase using Kt-Lint

…ersion of navigation components version , the old code did not.

Added documentation for setting up bottom bar with navigation components.
Linted whole codebase using Kt-Lint
Copy link

@towcar towcar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried using..
PopupMenu p = new PopupMenu(getApplicationContext(), null);
Menu menu = p.getMenu();
bottomBar.setupWithNavController(menu, navController);
it loads, but swapping tabs crashes. Not sure if this was the gist from the pull.

edit:
Fixed by using p.inflate(R.menu.bottom_nav_menu); to assign my bottom nav xml menu.

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

Successfully merging this pull request may close these issues.

Bottom Navigation does not work with Navigation Components
2 participants