开发者

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?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜