How to highlight a button when is pressed?

前端 未结 6 2040
忘了有多久
忘了有多久 2020-12-05 15:41

I\'m making an Andorid quiz and I want to highlight a button when it\'s clicked but when the user lets go of the button that it turns in it original colour. You see I\'ve se

6条回答
  •  情歌与酒
    2020-12-05 16:14

    Source Code

    https://drive.google.com/open?id=0BzBKpZ4nzNzUQ3RKZjE0eG15Rlk

    selector.xml

    
    
        
        
    
    

    normalpressed.xml

    
    
        
        
        
        
    
    

    pressed.xml

    
    
        
        
        
        
    
    
    
    **button** 
    
           

提交回复
热议问题