如何在android中开发一个windows方式切换按钮?

时间:2012-10-20 11:06:50

标签: android togglebutton

我需要为我的Android应用程序设计一个windows kinda切换按钮。我不知道使用哪一个。我尝试过使用SeekBar&切换按钮。我无法以同样的方式模拟。

enter image description here

单击它时,它将滑动到另一端。不是滑块的确切方式。 如果它在关闭期间单击它。它将滑动到另一端并启用它。

SeekBar有没有办法实现。 对于界面,我将使用下面的图标

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)