码迷,mamicode.com
首页 >  
搜索关键字:match_parent    ( 614个结果
(转)适配注意事项
一、关于布局适配1、不要使用绝对布局2、尽量使用match_parent 而不是fill_parent 。3、能够使用权重的地方尽量使用权重(android:layout_weight)4、如果是纯色背景,尽量使用android的shape 自定义。5、如果需要在特定分辨率下适配,可以在res目录上...
分类:其他好文   时间:2015-03-04 20:48:23    阅读次数:212
Android学习——ViewPage实现多页面滑动效果
第一步<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent" android:layout_height="match_parent"tools:context=".MainActivity"> <android.support.v4..
分类:移动开发   时间:2015-03-04 06:24:04    阅读次数:185
建一个简单的用户界面
Create a Linear Layout(创建一个线性布局)注释:android:orientation="vertical"水平线性布局,"horizontal"垂直水平线性 match_parent:This value declares that the view should expan...
分类:其他好文   时间:2015-03-03 20:11:56    阅读次数:131
Android学习——HorizontalScollview水平滚动控件
<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="match_par...
分类:移动开发   时间:2015-03-03 11:42:19    阅读次数:137
Android倒计时
感谢极客学院的视频布局文件:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" and..
分类:移动开发   时间:2015-03-02 19:16:05    阅读次数:209
android edittext 限制输入框小数位数
先看下XML布局文件 <EditText android:id="@+id/et" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_toLeftOf="@+id/tv_cou...
分类:移动开发   时间:2015-02-28 18:38:34    阅读次数:152
在ScrollView添加一个ListView造成的滚动问题的简单解决办法()
正常来说,在ScrollView添加一个ListView后在真机上只会显示ListView的一行多一点,我也不理解为什么会这样,后来我把ListView的layout_height改成400dip,而不是用match_parent和wrap_content,我发现这样的话ListView就显示的多了...
分类:其他好文   时间:2015-02-27 10:03:47    阅读次数:129
Dialog之列表,单选,及多选
XML布局<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:paddingBottom="@dimen/activity_vertical_margin"an..
分类:其他好文   时间:2015-02-27 01:34:17    阅读次数:148
Android中measure过程、WRAP_CONTENT详解以及 xml布局文件解析流程浅析
转自:http://www.uml.org.cn/mobiledev/201211221.asp今天,我着重讲解下如下三个内容:measure过程WRAP_CONTENT、MATCH_PARENT/FILL_PARENT属性的原理说明xml布局文件解析成View树的流程分析。希望对大家能有帮助。- ...
分类:移动开发   时间:2015-02-26 18:24:16    阅读次数:367
android getView方法不执行的一个原因是布局文件中没有给列表显示的位置
一个原因是布局文件中,没有给列表显示的位置。 例如:下面的布局         android:id="@+id/list_find"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:cacheColorHint="@and...
分类:移动开发   时间:2015-02-26 11:45:36    阅读次数:136
614条   上一页 1 ... 40 41 42 43 44 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!