android 布局 LinearLayout_第1张图片

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TextView
android:layout_width="0dp"
android:layout_height="83dp"
android:layout_weight="1"
android:background="#ccc"
android:gravity="top|left"
android:text="linear btn1"
/>
<TextView
android:layout_width="0dp"
android:layout_height="83dp"
android:layout_weight="1"
android:background="#bbb"
android:gravity="top|left"
android:text="linear btn2"
/>


<TextView
android:layout_width="0dp"
android:layout_height="83dp"
android:layout_weight="1"
android:background="#aaa"
android:gravity="top|left"
android:text="linear btn3"
/>

</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="5"
android:orientation="vertical" >

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:background="#aaa"
android:gravity="top|left"
android:text="linear btn4"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:background="#bbb"
android:gravity="top|left"
android:text="linear btn5"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:background="#ccc"
android:gravity="top|left"
android:text="linear btn6"
/>
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="3"
android:text="linear btn7"
/>
</LinearLayout>

</LinearLayout>

更多相关文章

  1. android LinearLayout布局
  2. 相对布局练习
  3. 线性布局练习
  4. android 布局 GridLayout
  5. Android学习之自定义控件之图片带文字的View
  6. Android 系列 6.30将具有圆角的边框添加到布局
  7. Android与WebView本地上传图片问题
  8. Android 中,应用程序需要的图片资源如何针对不同屏幕大小手机设计

随机推荐

  1. 为什么拥有云原生数据平台对电信公司很重
  2. OPENVIDU实现网络质量检测统计
  3. Python爬虫面试题分享!这三点很重要
  4. 阿凡提EGGNETWORK恒价通证+加密社交催生
  5. 如何使用自定义镜像快速配置机器环境
  6. 0-5V转0-5V模拟信号转换器,信号隔离器,分配
  7. 最近在用的一款可视化工具
  8. 全网最硬核PHP面试题来了 2021年学习面
  9. 【鸿蒙学院】鸿蒙IDE迎来重大更新,新特性
  10. 阿里云 RTC QoS 弱网对抗之变分辨率编码