可能重複:
How can I create a toggle button similar to the Twitter apps location toggle button?Android的切換按鈕/按鍵分段
我期待創造一個切換按鈕就像下面的屏幕。
當您單擊多數民衆贊成突出的一個方法,當有人點擊被突出往返哪裏。
可能重複:
How can I create a toggle button similar to the Twitter apps location toggle button?Android的切換按鈕/按鍵分段
我期待創造一個切換按鈕就像下面的屏幕。
當您單擊多數民衆贊成突出的一個方法,當有人點擊被突出往返哪裏。
其分段控制不切換按鈕只需一個按鈕...
http://ttlnews.blogspot.in/2011/09/segmented-button-control-in-android.html
http://www.4shared.com/get/jEyGPPPo/FoursquaredSegmentedButton.html
謝謝薩米爾:)該死的來自CSS/jQuery你傾向於忘記Android是不一樣的:P – 2012-02-16 10:30:31
看到4shared鏈接在我的答案是確切的你想要的 – 2012-02-16 10:33:56
是啊我已經導入到我的項目..但得到stylable錯誤.. – 2012-02-16 10:53:57
如何使用2個不同的圖形按鈕? 一個突出顯示的左側和一個突出顯示的右側?
所以基本上它有兩個圖形...
一種方法是有一個視圖有兩個按鈕的組。最初這兩個按鈕都是可點擊的。點擊Button1時,您可以禁用它並啓用Button2,反之亦然。
將會出現啓用/禁用按鈕的可繪製狀態。這給了分段控制小部件的感覺。
http://stackoverflow.com/questions/4978689/how-can-i-create-a-toggle-button-similar-to-the-twitter-apps-location-toggle-but – rf43 2012-02-16 10:21:20