android 控件 多项选择(CheckBox)
来源:互联网 发布:java 日志作用 编辑:程序博客网 时间:2024/05/17 02:57
1、继承关系和子类:
2、定义:
复选框
A checkbox is a specific type of two-states button that can be either checked or unchecked.
3、XML重要属性:
See CompoundButton Attributes
, Button Attributes
, TextView Attributes
, View Attributes
4、重要方法:
isChecked()
setChecked(true|false)
5、实战:布局文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" ><TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="复选框" /><CheckBox android:id="@+id/checkbox1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawableLeft="@drawable/ic_launcher" android:text="复选框" /></LinearLayout>参考1:http://developer.android.com/intl/zh-cn/reference/android/widget/CheckBox.html
参考2:http://www.oschina.net/question/54100_34556
0 0
- android 控件 多项选择(CheckBox)
- Android组件 多项选择(CheckBox)
- Android开发之四(六):常用控件之多项选择(CheckBox)
- Android 应用开发笔记 - 多项选择(CheckBox)
- javaScript实现checkbox多项选择
- 多项选择(CheckBox)的使用
- JavaScript实现checkbox多项选择
- 多项选择控件
- 多项选择控件学习
- Android学习笔记17:单项选择RadioButton和多项选择CheckBox的使用
- 多项选择~checkbox的简单运用
- Android 控件之五:CheckBox 选择框
- CheckBox jsp+javaScript多项选择checkbox取值实现
- Android的多项选择设计
- 单项选择RadioButton和多项选择CheckBox的使用
- 单项选择RadioButton和多项选择CheckBox的使用
- QT之CheckBox单项选择与多项选择
- checkbox多项选择当前的position信息提交
- Windows加壳防止破解工具Themida控件详细介绍
- C/C++结构体字节对齐详解
- SVN学习之windows下svn的安装
- 常量字符串的值如何传给变量字符串指针
- 关于Cocos2dx效率优化绝招
- android 控件 多项选择(CheckBox)
- 深入理解SQL Server 2005 中的 COLUMNS_UPDATED函数
- 投入使用时
- Illustrator Mac 中文版启动修复
- 设计模式【7】:桥接模式【接口适配】
- linux root用户在图形界面可以登录,命令行下却login incorrect的问题
- Eclipse 3.5.0 Indigo 版安装uml插件
- 关于java文件加载和初始化顺序问题分析
- HTTP协议之multipart/form-data请求分析