Android menu item with both icon and text together when showAsAction is never
问题 Hi, how can I make my menu items have icons as well when showAsAction is never ? 回答1: Use android:actionLayout in menu item tag to specify custom lyout (icon with text). Menu item will look like: <item android:id="@+id/edit_menu" android:actionLayout="@layout/custom_edit_row" android:orderInCategory="100" android:title="@string/edit" app:showAsAction="always"></item> Edit custom_edit_row.xml will be: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android