How to change three dots button on android to other button

后端 未结 6 2081
天涯浪人
天涯浪人 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:46

    For those who use Kotlin:

    toolbar.overflowIcon = ContextCompat.getDrawable(applicationContext,android.R.drawable.ic_dialog_info)
    

    Note: "ic_dialog_info" is an icon example.

提交回复
热议问题