I want to create a toolbar in my app, and I am wondering what is the standard height for the toolbar in android?
I want it to be big enough for a finger, but not huge. Is there standard size?
The Toolbar (if not extended) has the height of: 56dp (default)
By default, the image size is set to the dimensions of 16 by 15 pixels. All buttons are the same width, by default 24 by 22 pixels. A toolbar's height is determined by the height of the buttons, and a toolbar's width is the same as the width of the parent window's client area, also by default.
You can set the height here android:minHeight="? attr/actionBarSize" in your XML. Use height and not minHeight.
Its best to use ?attr/actionBarSize
as @Jaison Brooks commented.
In the material guidelines, suggested height is 56dp:
Toolbar: 56dp
The recommended minimum size for touchable elements is 48 dp, see this page for more detailed metrics.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With