如何设置菜单按钮高度与操作栏高度相同?

How to set menu buttons height same as actionbar height?

操作栏有 56dp 高度,菜单按钮只有 48dp。如何将菜单按钮的高度设置为类似于操作栏的高度?

添加到 dimens.xml 以下内容:

<dimen name="abc_action_button_min_height_material" tools:override="true">@dimen/abc_action_bar_default_height_material</dimen>
<dimen name="abc_action_button_min_width_material" tools:override="true">@dimen/abc_action_bar_default_height_material</dimen>