码迷,mamicode.com
首页 >  
搜索关键字:match_parent    ( 614个结果
android 计算机布局设置
<LinearLayout android:layout_height ="match_parent" android:layout_width="match_parent" android:orientation="vertical" <EditText android:layout_height ...
分类:移动开发   时间:2016-07-22 01:10:00    阅读次数:311
[安卓开发] 自定义View之一: 组合View
一、自定义View的分类1、组合View 2、继承重写View 3、全写View二、简介组合View,就是组合一些View来形成一个新的View。例如QQ的头部栏 三、了解**android:layout_width="match_parent" 上面这个前缀android是根据 根控件的 xmlns:**android**="http://schemas.android.com/apk/re...
分类:移动开发   时间:2016-07-19 10:48:59    阅读次数:272
API翻译 --- Supporting Different Screen Sizes
This lesson teaches you to Use "wrap_content" and "match_parent"   使用“wrap_content”和“match_parent” Use RelativeLayout  使用RelativeLayout Use Size Qualifiers  使用屏幕尺寸限制 Use the Smallest-wid...
分类:Windows程序   时间:2016-07-19 10:22:37    阅读次数:245
android:Spinner(下拉框)控件的使用
1.效果图 2.创建页面文件(main.xml) 1 <Spinner 2 android:id="@+id/spinner1" 3 android:layout_width="match_parent" 4 android:layout_height="wrap_content" /> 5 6 < ...
分类:移动开发   时间:2016-07-19 09:48:08    阅读次数:193
activity变成Dialog的步骤
1、在布局文件上最外层最好使用RelativeLayout来布局,如果使用LinearLayout来布局的话,显示对话框的话,感觉会有点问题; 要在预览中看到框框,并且是match_parent的,而实际的对话框要在预览框框范围内 2、style要继承android:Theme.Dialog,并且要 ...
分类:其他好文   时间:2016-07-13 23:08:06    阅读次数:227
Android简易实战教程--第七话《在内存中存储用户名和密码》
首先是配置文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height=...
分类:移动开发   时间:2016-07-13 16:41:56    阅读次数:271
EditText 几种显示方式,固定行数,自适应行数
1.显示7行,超过7行自动向下补充行数 <EditText android:id="@+id/edt_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:backgroun ...
分类:其他好文   时间:2016-07-01 16:00:45    阅读次数:715
自定义ViewGroup
引子:标准的自定义ViewGroup应该包含什么第一部分 支持wrap_content 即当ViewGroup的宽、高使用wrap-content时,ViewGroup的高宽根据子View的实际大小来确定 如果你不处理的话,“wrap-content”的和 “match-parent”是一样的ViewGroup支持Padding 其子View支持margin 支持自定义属性 例如:...
分类:其他好文   时间:2016-06-29 11:25:10    阅读次数:240
android textview 跑马灯
<TextView android:layout_width="match_parent" android:layout_height="48dp" android:ellipsize="marquee" android:focusable="true" android:singleLine="tr ...
分类:移动开发   时间:2016-06-23 12:27:17    阅读次数:177
android 智能提示
<AutoCompleteTextView android:id="@+id/autoCompleteTextView" android:completionThreshold="1" android:layout_width="match_parent" android:layout_height ...
分类:移动开发   时间:2016-06-22 20:25:37    阅读次数:268
614条   上一页 1 ... 12 13 14 15 16 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!