material-components/material-components-android-motion-codelab

app:fabAlignmentMode="end" makes all the buttons overlap in bottom app drawer.

pratyushtewari opened this issue · 1 comments

I am trying to set the FAB on the end alignment but it makes all the action buttons overlap on the nav button.

InkedScreenshot_20201024-200807_LI

Hey @pratyushtewari,

You'll probably have to manually hide the chevron and logo from the BottomAppBar in activity_main.xml. Since those views are custom children inside BottomAppBar, the overflow menu doesn't know about them and can't avoid them in a dynamic way.

The likely solution would be to do this yourself in MainActivity#setBottomAppBarForEmail. We already hide the title in that method and you would likely want to do something similar, setting bottomAppBarLogo and bottomAppBarChevron's visibility to INVISIBLE and then restoring their visibility in MainActivity#setBottomAppBarForHome.

Hope this helps