Android Toolbar Action Button Height
I have res/layout/toolbar.xml which is:
Also you can check the layout margin enabling in debug menu "show layout margin".
Here the specs for a smartphone:
If you check the style Widget.AppCompat.ActionButton
you will find the minHeight and minWidth specs:
values:
<stylename="Base.Widget.AppCompat.ActionButton"parent=""><itemname="android:minWidth">@dimen/abc_action_button_min_width_material</item><itemname="android:minHeight">@dimen/abc_action_button_min_height_material</item></style><dimenname="abc_action_button_min_height_material">48dp</dimen><dimenname="abc_action_button_min_width_material">48dp</dimen>
values-v21:
<stylename="Widget.Material.ActionButton"parent="Widget.ActionButton"><itemname="minWidth">@dimen/action_button_min_width_material</item><itemname="minHeight">@dimen/action_button_min_height_material</item></style><dimenname="action_button_min_width_material">48dp</dimen><dimenname="action_button_min_height_material">48dp</dimen>
Solution 2:
I'm not entirely sure this will solve your problem but try replacing
android:layout_height="?actionBarSize"
with
android:layout_height="?android:attr/actionBarSize"
in toolbar.xml. Again, not entirely sure it will work.
Post a Comment for "Android Toolbar Action Button Height"