How to change the color of button after click?

前端 未结 2 1110
再見小時候
再見小時候 2021-01-12 22:59

I create button with background color but when i click on it, it\'s not show anything.
I need to show different color on button after click because user need to know but

2条回答
  •  滥情空心
    2021-01-12 23:13

    //XML file saved at res/drawable/button_bg.xml:

    
    
         
         
         
    
    

    //This layout XML will apply the color list to a View:

    
    

提交回复
热议问题