how to change the image of a button with every click?

前端 未结 3 2172
情书的邮戳
情书的邮戳 2021-02-09 15:59

I created a button in the layout . In the Drawable folder I created a XML file named btn01_state. The btn0

3条回答
  •  不知归路
    2021-02-09 16:19

    Make it in code perhaps. Put a listener on the button and when the button is clicked the background is changed.

提交回复
热议问题