13-界面控件之RadioButton和CheckBox
2013-10-08 21:57
246 查看
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android1="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:width="100dp" android:text="@string/sex" /> <RadioGroup android1:id="@+id/radioGroup1" android1:layout_width="wrap_content" android1:layout_height="wrap_content" android1:orientation="horizontal" > <RadioButton android1:id="@+id/radio0" android1:layout_width="wrap_content" android1:layout_height="wrap_content" android1:checked="true" android1:text="@string/male" /> <RadioButton android1:id="@+id/radio1" android1:layout_width="wrap_content" android1:layout_height="wrap_content" android1:text="@string/female" /> </RadioGroup> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android1:id="@+id/textView2" android1:layout_width="wrap_content" android1:layout_height="wrap_content" android1:text="@string/sports" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" > <CheckBox android1:id="@+id/checkBox1" android1:layout_width="wrap_content" android1:layout_height="wrap_content" android1:text="@string/run" /> <CheckBox android1:id="@+id/checkBox2" android1:layout_width="wrap_content" android1:layout_height="wrap_content" android1:text="@string/swimming" /> <CheckBox android1:id="@+id/checkBox3" android1:layout_width="wrap_content" android1:layout_height="wrap_content" android1:text="@string/basketball" /> </LinearLayout> </LinearLayout> </LinearLayout>
相关文章推荐
- wxPython常用控件--wx.RadioButton,wx.CheckBox,wx.Choice,wx.Slider,wx.SpinCtrl,wx.Timer,wx.Dialog
- vs2005/.net2.0 控件实例之 单选按纽和复选框 <RadioButton><CheckBox>
- Android界面组件2---RadioButton、CheckBox
- 设定下拉列表控件DropDownList,复选按钮CheckBox,RadioButton默认值总结测试
- Android常见控件之RadioGroup,RadioButton,CheckBox和Toast
- Windows Phone开发之控件Grid,TextBox,TextBlock,RadioButton,CheckBox,ListBox简介
- 带CheckBox,RadioButton的网页树控件—EXTree
- 【读书笔记《Android游戏编程之从零开始》】4.Android 游戏开发常用的系统控件(EditText、CheckBox、Radiobutton)
- Android UI 设计——RadioButton 和 CheckBox 控件
- 系出名门Android(5) - 控件(View)之TextView, Button, ImageButton, ImageView, CheckBox, RadioButton, AnalogClock, DigitalClock
- 【读书笔记《Android游戏编程之从零开始》】4.Android 游戏开发常用的系统控件(EditText、CheckBox、Radiobutton)
- Adroid中的CheckBox控件和RadioButton控件
- 背水一战 Windows 10 (33) - 控件(选择类): ListBox, RadioButton, CheckBox, ToggleSwitch
- 系出名门Android(5) - 控件(View)之TextView, Button, ImageButton, ImageView, CheckBox, RadioButton, AnalogClock, DigitalClock
- 教学思路ASP.Net之服务器控件:二、CheckBox、RadioButton、Panel、Image控件
- Android控件之Button,RadioButton,CheckBox,DatePicker,DatePickerDialog的使用
- Android控件CheckBox、RadioButton
- Android 常用控件(RadioButton、CheckBox)、.9图、Toast(吐司面包,提示)、时间日期对话框 二
- jquery CheckBox、RadioButton、DropDownList的取值赋值实现代码/服务器控件 gridview 循环
- 03 - 基本控件:RadioButton单选框、CheckBox复选框