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

Is it possible to have the BottomAppBar & FloatingActionButton with menu evenly distributed? #72

Closed
b95505017 opened this issue Apr 13, 2018 · 4 comments

Comments

@b95505017
Copy link

Something like the mix concept of BottomNavigationView and BottomAppBar.

like this

@lanhuaguizha
Copy link

it is urgly

@lanhuaguizha
Copy link

I don't think we need this.

@ymarian
Copy link
Contributor

ymarian commented Jan 18, 2019

Hi I don't think this is part of the spec. So we probably won't implement it. https://material.io/design/components/app-bars-bottom.html#behavior

@ymarian ymarian closed this as completed Jan 18, 2019
@thenotoriousrog
Copy link

While this isn't part of spec, I figured that I would add this in case anyone else wants it. With the bottom app back you can evenly space your icons doing this:

if(bottomAppBar.childCount > 0) {
     val actionMenuView = bottomAppBar.getChildAt(0) as ActionMenuView
     actionMenuView.layoutParams.width = android.widget.ActionMenuView.LayoutParams.MATCH_PARENT   
}

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

No branches or pull requests

4 participants