0
我想保持點擊按鈕時按下按鈕。 Button的背景是使用StateList
如何保持按鈕按下
我想保持點擊按鈕時按下按鈕。 Button的背景是使用StateList
如何保持按鈕按下
對於這種行爲,您應該考慮使用ToggleButton
:http://developer.android.com/reference/android/widget/ToggleButton.html
也許看看/擴展CheckBox源代碼並將其用作起點?