RadioButton
来源:互联网 发布:ubuntu 15 安装教程 编辑:程序博客网 时间:2024/05/16 05:09
1.单选按钮
2.多个RadioButton必须放在RadioGroup里面,RadioGroup可以横向也可以竖向:orientation
3.RadioButton必须设置id,否则会可以多选。
2.多个RadioButton必须放在RadioGroup里面,RadioGroup可以横向也可以竖向:orientation
3.RadioButton必须设置id,否则会可以多选。
xml布局
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <RadioGroup android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" > <RadioButton android:id="@+id/tb_male" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="男" /> <RadioButton android:id="@+id/tb_female" android:layout_width="wrap_content" android:layout_height="wrap_content" android:checked="true" android:text="女" /> </RadioGroup></RelativeLayout>
0 0
- radiobutton
- radioButton
- Radiobutton
- RadioButton
- RadioButton
- RadioButton
- radiobutton
- RadioButton
- RadioButton
- RadioButton
- Radiobutton
- RadioButton
- RadioButton
- RadioButton
- RadioButton
- RadioButton与自定义RadioButton
- RadioButton控件
- RadioButton 类
- cocos2d-x 3.2 物理碰撞机制
- ThreadLocal的奥秘
- codeforces 295B Greg and Graph
- Altium Designer 10常见问题及解决方法
- 使用window.navigator.userAgent属性判断浏览器类型及版本
- RadioButton
- aws Reserved Instance
- Linux之进程管理
- ORA-00911: 无效字符
- java中如何打印规定图案? 举例说明
- C#_WinForm接收命令行参数
- php 与nginx配置想内容
- 关于去哪儿网的UI自动化测试脚本
- HDU3768限制最短路(有必经过的点)