<?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>

AndroidのUI布局之layout weight

更多相关文章

  1. Android_布局属性大全
  2. eclipse创建android项目,无法正常预览布局文件
  3. Android 布局中调字体的行距和间距
  4. Android studio相对布局的常用属性
  5. android:gravity 和 android:layout_Gravity属性——android开发

随机推荐

  1. android 霓虹灯效果
  2. 谷歌Android操作系统有望主导移动市场
  3. 简单解释Android中的任务、进程和线程
  4. android中使用AES加解密
  5. Android+SpringMVC通信
  6. Android(安卓)studio璁剧疆宸ヤ綔绌洪棿/
  7. Android主题定制及修改
  8. [android]笔记4-线性布局
  9. 熟悉Android打包编译的流程
  10. Android布局文件中控件的高度与宽度属性