Android button select and press drawable

前端 未结 2 1989
悲&欢浪女
悲&欢浪女 2020-12-24 13:15

I\'m trying to make a button with state press and select, I already did the same with tabs and it works but I don\'t know why here does not work. I have done it like this:<

2条回答
  •  抹茶落季
    2020-12-24 14:03

    The first item in your selector is only used, when the button is pressed AND selected. If you want to use button_sel when your button is pressed OR selected, you should do something like this:

    
        
        
        
    
    

    The items are evaluated from top to bottom, the last one is the default. Though I am not sure if state_selected makes sense for buttons.

提交回复
热议问题