2012-10-20 25 views
0

我需要爲我的android應用程序設計一個窗口切換按鈕。我不知道使用哪一個。我嘗試使用SeekBar & ToggleButton。我無法模擬相同的方式。如何在android中開發windows方式切換按鈕?

enter image description here

當你點擊它,它就會滑向另一端。不是滑塊的確切方式。 如果在關閉期間點擊它,它會滑動到另一端並使其啓用。

SeekBar中有一種方法可以實現。 對於接口我要去使用下面的圖標

enter image description here

enter image description here

回答