android-bottomappbar

Notch in BottomAppBar for custom FAB

老子叫甜甜 提交于 2019-12-10 11:05:37
问题 I'm using UnicornDialer from the unicorndial package to create a Material speed dial experience on the home page of my app, but if I set the shape property to define a notch, then notch is not painted correctly: I noticed on another package (flutter_speed_dial) that this was explicitly mentioned as not working: The SpeedDial widget is built to be placed in the floatingActionButton parameter of the Scaffold widget. It's not possible to set its position with the Scaffold

Notch in BottomAppBar for custom FAB

孤街醉人 提交于 2019-12-06 08:53:34
I'm using UnicornDialer from the unicorndial package to create a Material speed dial experience on the home page of my app, but if I set the shape property to define a notch, then notch is not painted correctly: I noticed on another package ( flutter_speed_dial ) that this was explicitly mentioned as not working: The SpeedDial widget is built to be placed in the floatingActionButton parameter of the Scaffold widget. It's not possible to set its position with the Scaffold.floatingActionButtonLocation parameter though. The use with the Scaffold.bottomNavigationBar is possible but the floating

Two different menus for Top App Bar and Bottom App bar with Navigation Components

谁都会走 提交于 2019-12-01 04:38:02
I was trying out Android Navigation Architecture Component and was also looking into Material design guidelines. I really got inspired by the design below: For the top toolbar I can set it by setSupportActionBar(toolbar) and then in MainActivity : public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu, menu); return super.onCreateOptionsMenu(menu); } But while trying it out I cannot figure it out how to implement menus on both Top and Bottom app bars for different fragments, specially for bottom app bar. For example , I want to show a favorite icon on bottom app

Two different menus for Top App Bar and Bottom App bar with Navigation Components

最后都变了- 提交于 2019-12-01 02:16:37
问题 I was trying out Android Navigation Architecture Component and was also looking into Material design guidelines. I really got inspired by the design below: For the top toolbar I can set it by setSupportActionBar(toolbar) and then in MainActivity : public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu, menu); return super.onCreateOptionsMenu(menu); } But while trying it out I cannot figure it out how to implement menus on both Top and Bottom app bars for

How to implement new material BottomAppBar as BottomNavigationView

本小妞迷上赌 提交于 2019-11-29 12:33:36
问题 I was trying to implement the new BottomAppBar that usually looks like this: material BottomAppBar as a BottomNavigationView like in the Google home app that looks like this. My problem is that since I can fill the BottomAppBar only with a menu resource, I can't understand how to align my buttons to look like a BottomNavigationView (but with the "cut" for the Fab button) instead of align everything to one side of the BottomAppBar. How can I add a custom layout inside this new Material

How to combine BottomAppBar + FAB with BottomNavigationView

不羁的心 提交于 2019-11-27 22:28:08
I want to use the FloatingActionButton , along with its behaviour when anchored on a BottomAppBar, on top of a BottomNavigationView. I came up with a rather "hacky" trick to just place the BottomNavigationView on top of the BottomAppBar without providing a background thus making it transparent. This seemed to work well at first sight but I found out that the fab button can only be clicked when touching the upper half of the button (So where there is no transparent BottomNavigationView on top). <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res

How to combine BottomAppBar + FAB with BottomNavigationView

这一生的挚爱 提交于 2019-11-26 11:18:17
问题 I want to use the FloatingActionButton , along with its behaviour when anchored on a BottomAppBar, on top of a BottomNavigationView. I came up with a rather \"hacky\" trick to just place the BottomNavigationView on top of the BottomAppBar without providing a background thus making it transparent. This seemed to work well at first sight but I found out that the fab button can only be clicked when touching the upper half of the button (So where there is no transparent BottomNavigationView on