码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果)
listview中item 有checkbox多选防止滑动 listview页面 出现checkbox错位问题
checkbox点击切换背景 <CheckBox android:id="@+id/checkbox" android:layout_width="40dp" android:layout_height="40dp" android:button="@null" android:focusable= ...
分类:其他好文   时间:2016-04-17 19:15:53    阅读次数:129
Android中的一些开关
CheckBox两种状态:选中(true)和未选中(false)属性:android:id="@+id/checkbox"android:checked="false"是否选中的状态android:text="女"新建:<CheckBox android:id="@+id/cb1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:te..
分类:移动开发   时间:2016-04-17 01:02:32    阅读次数:177
将listview显示在dialog当中
一.新建一个工程其activity_main.xml文件如下<?xmlversion="1.0"encoding="utf-8"?> <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout..
分类:其他好文   时间:2016-04-16 19:44:28    阅读次数:239
预显示TextView
AutoCompleteTextView功能:动态匹配输入的内容,如搜索框提示待搜索信息,只能选一个;独特属性:android:completionThreshold="2"设置输入多少个字符后开始自动匹配新建一个AutoCompleteTextView:<AutoCompleteTextView android:id="@+id/actext1" android:layout_width=..
分类:其他好文   时间:2016-04-16 19:38:12    阅读次数:152
ToggleButton
ToggleButton有两种状态,选中和未选中,即开和关,需要在不同状态下显示不同的文本。属性:android:checked="true"android:textOn="开"android:textOff="关"具体文本可以自己设置新建View:<ImageView android:id="@+id/iv1" android:layout_width="match_parent" android:..
分类:其他好文   时间:2016-04-16 19:36:09    阅读次数:115
Android 在界面中显示以及输入文本信息 TextView和EditText
Android控件之TextView和EditTextTextView:显示文本框控件EditText:输入文本框TextView和EditText的常用属性TextView控件的常用属性android:id 控件的idandroid:layout_width 控件的宽度android:layout ...
分类:移动开发   时间:2016-04-16 18:21:21    阅读次数:1002
Android上传头像代码,相机,相册,裁剪
activity_main.xml <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width= ...
分类:移动开发   时间:2016-04-14 11:56:07    阅读次数:243
360手机卫士---扫描杀雷达效果
activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="f ...
分类:移动开发   时间:2016-04-13 20:23:35    阅读次数:256
RadioGroup和Radiobutton
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pa ...
分类:其他好文   时间:2016-04-12 19:16:23    阅读次数:120
Activity中操作xml布局
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ ...
分类:其他好文   时间:2016-04-12 19:04:17    阅读次数:141
共981条   上一页 1 ... 29 30 31 32 33 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!