码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果
Android 带密码输入界面的Dialog实现机制
1.布局实现: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizont...
分类:移动开发   时间:2015-03-14 17:06:09    阅读次数:1416
Android抽屉菜单DrawerLayout的实现案例
(1)项目布局文件 activity_main.xml<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent...
分类:移动开发   时间:2015-03-13 16:43:45    阅读次数:251
网络加载数据和解析JSON格式数据案例之空气质量监测应用
一、创建一个新的项目 activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" andr...
分类:Web程序   时间:2015-03-13 14:27:46    阅读次数:278
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
使用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
981条   上一页 1 ... 66 67 68 69 70 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!