码迷,mamicode.com
首页 >  
搜索关键字:fill_parent    ( 286个结果
Graphics简单汇总
1、主页面布局文件 activity_main.xml(只有2个button按钮) <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_paren...
分类:其他好文   时间:2015-03-13 00:31:33    阅读次数:156
动画综合练习(延迟进入+页面向导+文本框抖动)
1、activity_welcome.xml(界面刚加载进入欢迎界面的布局) <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ll_welcome_root" android:layout_width="fill_parent" andr...
分类:其他好文   时间:2015-03-12 22:38:00    阅读次数:234
Animation动画效果简单汇总
————————————案例结构很复杂一步步来———————————— 1、activity_main.xml(首先看启动界面布局文件,里面有2个button) <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" ...
分类:其他好文   时间:2015-03-12 20:54:18    阅读次数:186
360手机卫士---扫描杀雷达效果
activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vert...
分类:移动开发   时间:2015-03-12 20:53:25    阅读次数:182
Android屏幕适配建议
一、关于布局适配1、不要使用绝对布局2、尽量使用match_parent 而不是fill_parent 。3、能够使用权重的地方尽量使用权重(android:layout_weight)4、如果是纯色背景,尽量使用android的shape 自定义。5、如果需要在特定分辨率下适配,可以在res目录上...
分类:移动开发   时间:2015-03-12 20:36:31    阅读次数:147
android屏幕适配建议
一、关于布局适配 1、不要使用绝对布局 2、尽量使用match_parent 而不是fill_parent 。 3、能够使用权重的地方尽量使用权重(android:layout_weight) 4、如果是纯色背景,尽量使用android的shape 自定义。 5、如果需要在特定分辨率下适配,可以在res目录上新建layout-HxW.xml的文件夹。比如要适配1080*1800的屏幕(魅...
分类:移动开发   时间:2015-03-11 17:30:03    阅读次数:166
使用clipChildren实现仿微信的未读消息列表显式布局
做IM项目是遇到了一个问题就是让那个个未读消息显示在他的父类外面,类似微信的未读消息数显式布局,弄了好久都不知道怎么搞,用其它方法因为要达到适配的原因所以放弃了最后老大告诉我加一个; 代码如下: <LinearLayout android:id="@+id/msg_item_layout" android:layout_width="fill_parent" ...
分类:微信   时间:2015-03-10 14:00:56    阅读次数:275
android背景图按比例缩放方法
直接在你的layout文件的开头加一个FrameLayout ,里面放一个ImageView,因为只有android:src可以设置android:scaleType,android:background是无法设置的,我的代码:   android:layout_width="fill_parent"  android:layout_height="fill_parent">...
分类:移动开发   时间:2015-03-09 22:31:10    阅读次数:343
Android--Vibrator(震动模式)
main.xml代码如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertica...
分类:移动开发   时间:2015-03-09 12:59:05    阅读次数:202
Android学习——TabHost的使用二
仿QQ底端导航栏废话不多说,直接上代码<?xmlversion="1.0"encoding="UTF-8"?> <!--Tab导航最新版--> <TabHostxmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layou..
分类:移动开发   时间:2015-03-07 18:46:20    阅读次数:253
286条   上一页 1 ... 16 17 18 19 20 ... 29 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!