码迷,mamicode.com
首页 >  
搜索关键字:match_parent    ( 614个结果
没事抽空学——常用界面组件属性
android:latout_width fill_parent 设置组件宽高,fill和wrap相同 match_parent wrap_content android:text 组件中文字 组件中文字 android:ems 数值和长度单位 英文字M的数倍 android:inputType t
分类:其他好文   时间:2016-03-02 23:38:12    阅读次数:187
PopupWindow简单用法
要弹出PopupWindow窗口的布局<?xmlversion="1.0"encoding="utf-8"?> <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#FFBBFFBB" android:..
分类:Windows程序   时间:2016-03-01 14:43:57    阅读次数:194
Android优化——UI优化(四) 使用stytle
使用style替换背景,防止Activity黑色背景闪过 1.原来的布局 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" andr
分类:移动开发   时间:2016-02-29 10:36:30    阅读次数:238
andriod 剪贴板操作
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an
分类:其他好文   时间:2016-02-28 16:40:59    阅读次数:165
自定义软件盘的Enter键
目标:改变软键盘的外观使enter显示为“DONE”或“完成”,监听点击事件。 实现: 1.在xml文件中定义一个EditText <EditText android:layout_width="match_parent" android:layout_height="40dp" android:i
分类:其他好文   时间:2016-02-23 13:01:32    阅读次数:123
《第一行代码》读书笔记-2
gravity的对齐方式有top,bottom,left,right,center可以用"|"同时选取。 wrap_content 适配内容,保证显示完整。 match_parent:父布局决定大小 默认人提示性文字:hint xml中给imageview添加图片:src= activity中设置图
分类:其他好文   时间:2016-02-22 20:42:28    阅读次数:127
android toolbar 假标题居中
<android.support.v7.widget.Toolbar android:id="@+id/toolbar_top" android:layout_height="wrap_content" android:layout_width="match_parent" android:minH
分类:移动开发   时间:2016-02-18 21:36:30    阅读次数:460
美团外卖我的信息界面实现
先上图: 布局: 1 <?xml version="1.0" encoding="UTF-8"?> 2 3 -<LinearLayout android:orientation="vertical" android:layout_height="match_parent" android:layou
分类:其他好文   时间:2016-02-15 09:19:47    阅读次数:589
常用界面布局
<?xml version="1.0" encoding="utf-8"?><ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" andro
分类:其他好文   时间:2016-02-12 15:10:08    阅读次数:230
Android开发学习之路--UI之简单聊天界面
学了很多的ui的知识,这里就来实现个聊天的界面,首先来实现个layout的xml,代码如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_p...
分类:移动开发   时间:2016-02-11 22:42:28    阅读次数:477
614条   上一页 1 ... 20 21 22 23 24 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!