Change the color of a disabled button in android

后端 未结 6 1430
灰色年华
灰色年华 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:32

    Specify the color in selector for android:state_enabled="false" as drawable

    
        
            
                
            
        
    
    

    And apply this drawable resource to background of button

     

提交回复
热议问题