AndroidのUI布局之layout weight
2015-06-27 13:18
393 查看
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <EditText android:id="@+id/edit_message" android:layout_weight="1" android:layout_width="0dp" android:layout_height="wrap_content" android:hint="@string/edit_message" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/button_send" /> </LinearLayout>
相关文章推荐
- STM32F030系列UID
- iOS开发之使用UIView-Positioning简化页面布局
- 黑马程序员--Java学习日记之GUI(图形化用户界面编程)
- UIView的xib和UIViewController的xib的区别
- easyui datagrid显示进度条控制操作
- 泛型容器单元(Generics.Collections)[2]: TQueue<T> 队列列表
- RequireJS 参考文章
- require.js的用法
- JAVA ERROR---Access restriction: The type JOptionPane is not accessible due to restriction on requir
- 225.Implement Stack using Queues
- UITextView自适应内容的高度且实现光标总是距离键盘一段距离而滑动条却可以延伸到光盘
- require.js的用法
- Android UiAutomator 自动化环境搭建
- iOS 多线程开发之OperationQueue(二)NSOperation VS GCD
- easy=ui 树形结构案例
- 关于UIImageView不显示图片的问题小记
- UIButton 设置阴影效果
- iOS UIView非常用方法及属性详解
- ueditor 长文章分页
- Win10 Build 10154全新壁纸:海滩上奔跑的美女