android option menu with icon

前端 未结 9 1101
借酒劲吻你
借酒劲吻你 2021-02-05 08:36

How to show icon with option menu.I have tried the following code but my option menu is without image icon.I am using android version 4.0 for developing app.

Jav

9条回答
  •  抹茶落季
    2021-02-05 08:49

    Easiest way is to use the @drawable only when setting your menu item.

    OR

    Simply put the @drawable before the title declaration.

    
    
    
    
      
    

提交回复
热议问题