How to customize the Option Menu item layout from xml or programmatically. I found many question but no good answer yet.
How to change Option Menu Style
<item
android:id="@+id/itemId"
android:title="Item title"
app:showAsAction="always"
app:actionLayout="@layout/menu_item_layout" />
Note that this layout will be shown only in the ActionBar . If the item is in the overflow menu only title will be shown.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.