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

We are working on an Android application for industrial use. We increased the size of the action bar, text, etc., to improve visibility and touch the target size. Everything works fine, however, I was not able to increase the height of the action bar overflow menu list items:

Action bar with small overflow menu items

By digging, I was able to change the background color of the popup menu using

    <style name="MyTheme" parent="@android:style/Theme.Holo">
        <item name="android:popupMenuStyle">@style/MyPopupMenu</item>
    </style>

    <style name="MyPopupMenu" parent="android:style/Widget.Holo.ListPopupWindow">
        <item name="android:popupBackground">#800</item>
    </style>

However, I cannot find a way to change the height of the menu items themselves. There are many stack overflow messages telling you about setting up clips in the action bar, but very little about the overflow menu.

+3
source share
1 answer

, - . android: listPreferredItemHeightSmall . :

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

:

enter image description here

: listPreferredItemHeightSmall, , , , , .

+5

All Articles