Disable button with button selector

前端 未结 2 1658
难免孤独
难免孤独 2021-02-12 20:35

I have a button selector that changes the button image when it is pressed. I have also set an image for when the button is disabled. I try and disable the button programmaticall

2条回答
  •  独厮守ぢ
    2021-02-12 20:56

    try this one and i uploaded one sample project for you for more help check the project

    selector.xml

       
    
            
            
            
    
        
    

    and use this selector in button as following

    sample code link https://www.dropbox.com/s/lydkog10rkujbsa/ButtonSelector.rar

提交回复
热议问题