码迷,mamicode.com
首页 >  
搜索关键字:match_parent    ( 614个结果
安卓入门学习之ListView
在安卓的数据列表显示的时候,通常会用到ListView,所以列出下学习时候遇到的 1,用系统自定义的ListView 首先在xml文件中建立listview <ListView android:id="@+id/list_view" android:layout_width="match_parent" android:layout_h...
分类:移动开发   时间:2015-05-09 16:35:51    阅读次数:169
自定义AlertDialog(圆角+退出动画+自定义布局)
图片省略了不上传了。。。 首先看activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent...
分类:其他好文   时间:2015-05-09 06:38:38    阅读次数:168
下拉刷新问题记录
最近用到了com.handmark.pulltorefresh.library.PullToRefreshListView的下拉刷新 发现了两个问题 1.PullToRefreshListView的layout_height必须要设为match_parent,之前ListView设为wrap_content是没有问题的,这一点要注意。 2.PullToRefreshListView的visi...
分类:其他好文   时间:2015-05-08 10:57:23    阅读次数:127
android布局--Android fill_parent、wrap_content和match_parent的区别
1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或控件为fill_parent将强制性让它布满整个屏幕。2) wrap_content设置一个视图的尺寸为...
分类:移动开发   时间:2015-05-06 14:30:46    阅读次数:123
Android开发之密码明文密文切换显示
.xml文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ????xmlns:tools="http://schemas.android.com/tools" ????android:layout_width="match_parent" ????android...
分类:移动开发   时间:2015-05-02 15:16:35    阅读次数:169
Android fill_parent、wrap_content和match_parent的区别
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:移动开发   时间:2015-04-29 19:15:19    阅读次数:107
FragmentTabHost and Fragment 用法
主要布局如下: <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="...
分类:其他好文   时间:2015-04-29 15:10:59    阅读次数:177
android动作传感器
android传感器 view: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_he...
分类:移动开发   时间:2015-04-26 15:19:29    阅读次数:160
ImageSwitcher的使用
view: <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_...
分类:其他好文   时间:2015-04-26 09:33:14    阅读次数:155
android左侧滑效果
avtivity_cehua.xml <android.support.v4.widget.DrawerLayoutxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer" android:layout_width="match_parent" android:layout_height="matc..
分类:移动开发   时间:2015-04-24 19:25:03    阅读次数:159
614条   上一页 1 ... 35 36 37 38 39 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!