architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

How to set middle item as first in Navigation Advanced Sample

Open Mariius opened this issue 4 years ago • 1 comments
trafficstars

Question about Navigation Advanced Sample

In the example the most left menu item is the main one - if user clicks on other menu items and then presses back button - user will be navigated back to left menu item and after pressing back again - activity will be finished.

My question is: if there are 3 menu items, how to make the middle item behave as the left one. In other words, how to make middle menu item the "fixed start destination", or the "main menu item"?

Mariius avatar Jul 14 '21 07:07 Mariius

In the main nav graph there's an app:startDestination="@+id/home" option I think that could be it

LivingWithHippos avatar Sep 04 '21 11:09 LivingWithHippos