0
A
回答
0
您可以使用RadioGroup中和單選按鈕來實現這一目標。例如,
<RadioButton
android:id="@+id/custom_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1"
android:button="@null"
android:background="@drawable/button_custom"/>
其中button_custom是所示按鈕的背景圖像。這個圖像應該有所有的變化(如正常,按下,啓用,禁用,選擇)。
相關問題
- 1. 在android中定製相機
- 2. 在android中定製圖形
- 3. 在android中定製xml包
- 4. 在android中定製按鈕
- 5. 定製的WebView在Android中
- 6. 定製android arrayadapter
- 7. Android定製TabWidget
- 8. 定製Android
- 9. Android SeekBar定製
- 10. 定製的Android
- 11. Android ActionbarSherlock定製
- 12. Android定製SimpleAdapter
- 13. Android LockScreen定製
- 14. 定製android DialogFragment
- 15. android截圖定製
- 16. 定製Android Webview類
- 17. Android主題定製
- 18. Android定製動畫
- 19. 定製Android圖庫
- 20. Android定製視圖
- 21. Android綁定限制
- 22. 的Android定製ViewFlipper
- 23. 定製的Android TabHost
- 24. 定製android dumpsys meminfo
- 25. 的Android定製stackview
- 26. 定製Android相機
- 27. Android部署定製
- 28. Android定製筆刷
- 29. Android AppCompat Actionbar定製
- 30. 定製Android Studio中
我想,你可以從這裏開始:http://developer.android.com/guide/topics/ui/custom-components.html – mudit 2011-03-28 10:35:38
嘗試TabHost ..你可以看到tabhost的例子[here](http: //www.androidpeople.com/android-tabhost-tutorial-part-1 /)... – 2011-03-28 12:32:01