码迷,mamicode.com
首页 >  
搜索关键字:match_parent    ( 614个结果
android下拉刷新上拉加载原理研究
整体布局结构 视图实现原理 该组件整体以竖直方向的LinearLayout为根视图,分别是Header、ContentView、Foooter, 从上到下依次排列下来,其中ContentView的宽高都为match_parent,footer和header的宽、高分别为match_parent、wr ...
分类:移动开发   时间:2016-04-20 18:01:55    阅读次数:267
计算器布局
<?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and ...
分类:其他好文   时间:2016-04-19 18:59:59    阅读次数:233
RelativeLayout
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" ...
分类:其他好文   时间:2016-04-19 15:42:04    阅读次数:189
图文混排
item.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_p ...
分类:其他好文   时间:2016-04-18 11:55:54    阅读次数:165
将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
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之Linearlayouy线性布局
写了个小例子xml代码如下: 运行结果如图: 这里有一比较奇怪的地方: 当二级的Linearlayout节点的layout_width,layout_height属性值是fill_parent或match_parent(因为版本间的兼容性问题建议使用),此时layout_weight的权重值与屏幕布 ...
分类:移动开发   时间:2016-04-05 00:38:53    阅读次数:692
通过SectionIndexer实现微信通讯录
这里主要参考了使用SectionIndexer实现微信通讯录的效果 在这里做个记录 效果图 页面使用RelativeLayout,主要分为三个部分,match_parent的主listView,右边字母的SideBar,还有就是微信那种点击字母时浮动的一个TextView 布局: fragment_ ...
分类:微信   时间:2016-03-31 14:27:01    阅读次数:317
android布局优化的三大标签
1、布局重用 标签能够重用布局文件,简单的使用如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width=”match_parent” and...
分类:移动开发   时间:2016-03-30 13:03:10    阅读次数:255
Android五大布局标签和属性总结
1.LinearLayout orention 水平和垂直 weight 切割闲置空间 水平布局 切割宽度 垂直布局 切割的高度 切割的时候 指定的高度或者宽度不能用fill_parent/match_parent 2.Tablayout <TabRow> </TabRow> 一行 <TabRow> ...
分类:移动开发   时间:2016-03-28 15:06:31    阅读次数:168
614条   上一页 1 ... 18 19 20 21 22 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!