在我一直在努力的应用程序中,我希望有一个多状态(在我的情况下,三个)切换按钮,而不是提供的两个ToggleButton.我已经尝试Button按照CompoundButton源代码开始扩展自己,但老实说,阅读它的来源有点压倒性.
ToggleButton
Button
CompoundButton
有没有办法只使用选择器xml或其他东西做一个三态切换按钮,或者可能是另一种我没想过的方法?我不知道该怎么做.
user-interface android button togglebutton
android ×1
button ×1
togglebutton ×1
user-interface ×1