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

NavHostFragment and CoordinatorLayout

Open St4B opened this issue 5 years ago • 1 comments

I use the workaround for persisting multiple backstacks during navigation, which is presented in NavigationAdvancedSample. If i use CoordinatorLayout as a nav host container there are issues with width/height of contained fragment. I want to use CoordinatorLayout in order to place snackbars above BottomNavigationView and i thought why to define another layout?

The simple solution is to add two different layouts (1 FrameLayout and 1 CoordinatorLayout) but why is this happening? Is it a bug?

St4B avatar Jul 05 '19 08:07 St4B

Ditto on this. I get a weird 'old navstack shows behind new navstack' bug whenever I select a new destination on the nav bar

grantmk avatar Nov 12 '19 14:11 grantmk