Is there a way to set drawable's Alpha using XML?

后端 未结 9 724
无人及你
无人及你 2020-12-24 05:21

Easy like itself . I wanna make an alpha button , which would have a selected drawable this way:




        
9条回答
  •  礼貌的吻别
    2020-12-24 05:36

    For those who have the same problem as OP, AppCompat now allows you to set 'alpha' parameter, as he wished in his target code:

        
    
    
        
        
        
    
    
    

    More info here.

提交回复
热议问题