开发者

how to stay the button pressed

开发者 https://www.devze.com 2023-01-27 15:44 出处:网络
I want to stay the button pressed when clicked on that button. Button\'s background is done using StateList开发者_StackOverflowYou should consider using a ToggleButton for this kind of behaviour: http

I want to stay the button pressed when clicked on that button. Button's background is done using StateList开发者_StackOverflow


You should consider using a ToggleButton for this kind of behaviour: http://developer.android.com/reference/android/widget/ToggleButton.html


Maybe have a look at/extend the CheckBox source code and use that as a starting point?

0

精彩评论

暂无评论...
验证码 换一张
取 消