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窗口的布局<?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:..
使用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
<?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显示为“DONE”或“完成”,监听点击事件。 实现: 1.在xml文件中定义一个EditText <EditText android:layout_width="match_parent" android:layout_height="40dp" android:i
分类:
其他好文 时间:
2016-02-23 13:01:32
阅读次数:
123
gravity的对齐方式有top,bottom,left,right,center可以用"|"同时选取。 wrap_content 适配内容,保证显示完整。 match_parent:父布局决定大小 默认人提示性文字:hint xml中给imageview添加图片:src= activity中设置图
分类:
其他好文 时间:
2016-02-22 20:42:28
阅读次数:
127
<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
学了很多的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