Change the color of a disabled button in android

后端 未结 6 1340
灰色年华
灰色年华 2021-02-03 22:56

Is there a way to change the color of a disabled button in android through styles or some other form ?

I currently have the following,

drawable/button_de

6条回答
  •  醉梦人生
    2021-02-03 23:45

    You'll have to use a selector for different drawables in those states.

    You can create a selector like this:

    
        
        
        
        
    
    

提交回复
热议问题