Skip to content

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

Open
Vaibhav2002 wants to merge 2 commits intoDroppers:masterfrom
Vaibhav2002:master
Open

Updated demo code in NavControllerActivity and added missing documentation for Navigation Components.#50
Vaibhav2002 wants to merge 2 commits intoDroppers:masterfrom
Vaibhav2002:master

Conversation

@Vaibhav2002
Copy link
Copy Markdown

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
Copy Markdown

@carsonskjerdal carsonskjerdal 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