Android menu item with both icon and text together when showAsAction is never

后端 未结 5 656
别那么骄傲
别那么骄傲 2020-12-17 16:59

Hi, how can I make my menu items have icons as well when showAsAction is never ?

5条回答
  •  眼角桃花
    2020-12-17 17:42

    Use android:actionLayout in menu item tag to specify custom lyout (icon with text). Menu item will look like:

    
    

    Edit

    custom_edit_row.xml
    

    will be:

    
    
    
    
    
    
    

提交回复
热议问题