Android: Using selector to set background color for image view

后端 未结 5 1010
情歌与酒
情歌与酒 2020-12-15 22:45

I am trying to set the background color of an image view.

 

        
5条回答
  •  忘掉有多难
    2020-12-15 23:16

    Best way to implement the selector is by using the xml instead of using programatic way as its more easy to implemnt with xml.

            
    
           
        
    
    
        
    
    
        
    
    
        
    

    For more information i implemented using this link http://www.blazin.in/2016/03/how-to-use-selectors-for-botton.html

提交回复
热议问题