how to stay the button pressed
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?
精彩评论