android的单选按钮xml语法,android 控件 单项选择(RadioGroup,RadioButton)
1、繼承關系和子類:
2、定義:
RadioButton表示單個圓形單選框,而RadioGroup是可以容納多個RadioButton的容器
3、XML重要屬性:
4、重要方法:
5、實戰:
布局文件
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="男" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="女" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="不確定" />
參考1:
http://developer.android.com/intl/zh-cn/reference/android/widget/RadioButton.html
參考2:
http://www.cnblogs.com/wt616/archive/2011/06/20/2085531.html
總結
以上是生活随笔為你收集整理的android的单选按钮xml语法,android 控件 单项选择(RadioGroup,RadioButton)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2020年养老保险缴费基数
- 下一篇: android 版本28 通知栏图标,【