Skip to content Skip to sidebar Skip to footer

Android Toolbar Action Button Height

I have res/layout/toolbar.xml which is: Copy

values-v21:

<style name="Widget.Material.ActionButton" parent="Widget.ActionButton">
     <item name="minWidth">@dimen/action_button_min_width_material</item>
     <item name="minHeight">@dimen/action_button_min_height_material</item>
</style>

<dimen name="action_button_min_width_material">48dp</dimen>
<dimen name="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"