Change the height of the action bar overflow menu items via styles

前端 未结 1 1984
耶瑟儿~
耶瑟儿~ 2021-01-06 16:05

We are working on an Android application for industrial uses. We have increased the size of the action bar, text, etc to help improve visibility and touch target size. Eve

相关标签:
1条回答
  • 2021-01-06 16:26

    I actually just uncovered it while working on something else. The height of the items in the overflow action menu is controlled by the android:listPreferredItemHeightSmall item in the application theme. So:

    <style name="MyTheme" parent="@android:style/Theme.Holo">
        <item name="android:listPreferredItemHeightSmall">72dp</item>
    </style>
    

    Gives us:

    enter image description here

    Changing android:listPreferredItemHeightSmall will possibly impact on some other things, but since in my case we are happy to have everything large, it works well.

    0 讨论(0)
提交回复
热议问题