Android控件介绍多选按钮(CheckBox)CheckBox有两个常用的事件,OnClickListener事件和OnClickChangeListener事件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"...
分类:
移动开发 时间:
2015-07-22 22:54:32
阅读次数:
277
一、RadioGroup与RadioButton 1、什么是RadioGroup: RadioButton的一个集合,提供多选机制 2、什么是RadioButton: RadioButton包裹在RadioGroup中,RadioGroup表示一组RadioButton,下面可以有很...
分类:
移动开发 时间:
2015-07-21 01:06:13
阅读次数:
216
一、有两种状态: 选中状态(true)、未选中状态(false)二、属性 android:id = "@+id/checkbox" android:layout_width="match_parent" android:layout_height="wrap_content"...
分类:
移动开发 时间:
2015-07-20 21:20:25
阅读次数:
150
一、概述 ToggleButton有两种状态:选中状态和没选中状态(类似一个开关),并且需要为不同的状态设置不同的显示文本二、ToggleButton属性 android:checked = "true" ——按钮的状态(true为选中(textOn),false为没有选中(textOff)) .....
分类:
移动开发 时间:
2015-07-20 06:47:52
阅读次数:
123
一、功能 动态匹配输入的内容,如百度搜索引擎当输入文本时,可以根据内容显示匹配的热门信息二、独特属性 android:completionThreshold = "2" ——设置输入多少字符时自动匹配 三、代码演示 package com.muke.textview_editt...
分类:
移动开发 时间:
2015-07-20 06:44:18
阅读次数:
520
一、功能 可支持选择多个值(在多次输入的情况下),分别用分隔符分开,并且在每个值选中的时候再次输入值时会自动去匹配,可用在发送短信,发邮件时选择联系人这种类型中 二、独特属性 android:completionThreshold = "2" ——设置输入多少字符时自动匹配三、设置分隔符 ...
分类:
移动开发 时间:
2015-07-20 06:44:17
阅读次数:
126
一、Button和ImageButton特证: 1、共同特证: 都可以作为一个按钮产生点击事件 2、不同特证: Button有text的属性,ImageButton没有 ImageButton有src属性,Button没有二、布局文件中设置Button和ImageButton控...
分类:
移动开发 时间:
2015-07-19 23:35:41
阅读次数:
170
一、ImageView属性: android:src = "@drawable/ic_launcher"——ImageView的内容图像(可以和android:background = "#00000"同时使用) android:background = "@drawable/ic_launch.....
分类:
移动开发 时间:
2015-07-18 15:33:54
阅读次数:
125
一、EditText控件的常用属性 android:id——控件的id android:layout_width——控件的宽度 android:layout_height——控件的高度 android:text——文本内容(可以设置默认值) android:te...
分类:
移动开发 时间:
2015-07-18 15:22:56
阅读次数:
181
一、TextView(显示文本框控件) 1、TextView控件的常用属性 android:id——控件的id android:layout_width——控件的宽度 android:layout_height——控件的高度 android:text——文本内容 ...
分类:
移动开发 时间:
2015-07-18 14:02:58
阅读次数:
270