How to change three dots button on android to other button

后端 未结 6 2077
天涯浪人
天涯浪人 2020-12-06 01:15

I wanna change the three dots button on Android to other button which is an \"Add\" button. How to do it? I have changed set the button in my drawable, but it keep prompt th

6条回答
  •  情话喂你
    2020-12-06 01:48

    If you want to add other icon instead of 3 dots then just create menu.xml like below code:

    
    
    
    
    

    Note: Don't use android:showAsAction. Use app:showAsAction.

提交回复
热议问题