首页 > 移动平台 > 详细

安卓---RedioButton(单选按钮)、CheckBox(复选按钮)

时间:2017-05-18 18:34:46      阅读:420      评论:0      收藏:0      [点我收藏+]

<RadioGroup
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:checkedButton="@+id/rb2"
>
<RadioButton
android:id="@+id/rb1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="西瓜"
android:textColor="#ff0000"
>
</RadioButton>
<RadioButton
android:id="@+id/rb2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="香蕉"
android:textColor="#ff0000"
>
</RadioButton>
</RadioGroup>

<CheckBox
android:checked="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="荔枝"
></CheckBox>
<CheckBox
android:checked="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="车厘子"
>

</CheckBox>

安卓---RedioButton(单选按钮)、CheckBox(复选按钮)

原文:http://www.cnblogs.com/www123----/p/6874755.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!