当前位置: 首页 > news >正文

安卓线性布局LinearLayout

 

<?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="vertical"><LinearLayoutandroid:layout_width="match_parent"android:layout_height="wrap_content"android:orientation="horizontal"><TextViewandroid:layout_width="0dp"android:layout_height="wrap_content"android:layout_weight="1"android:text="横排第一个"android:textSize="17sp"android:textColor="#000000"/><TextViewandroid:layout_width="0dp"android:layout_height="wrap_content"android:layout_weight="1"android:text="横排第二个"android:textSize="17sp"android:textColor="#000000"/></LinearLayout><LinearLayoutandroid:layout_width="match_parent"android:layout_height="wrap_content"android:orientation="vertical"><TextViewandroid:layout_width="wrap_content"android:layout_height="0dp"android:layout_weight="1"android:text="竖排第一个"android:textSize="17sp"android:textColor="#000000"/><TextViewandroid:layout_width="wrap_content"android:layout_height="0dp"android:layout_weight="2"android:text="竖排第二个"android:textSize="17sp"android:textColor="#000000"/></LinearLayout></LinearLayout>

http://www.lryc.cn/news/291953.html

相关文章:

  • Advanced CNN
  • 判断当前设备是不是安卓或者IOS?
  • 使用C++操作Matlab中的mat文件
  • 【OCPP】ocpp1.6协议第3.5章节:本地授权和离线行为-介绍及翻译
  • OpenGL查询对象 Query Objects
  • 【数据分享】1929-2023年全球站点的逐日最高气温数据(Shp\Excel\免费获取)
  • Docker深入解析:从基础到实践
  • 【鸿蒙】大模型对话应用(一):大模型接口对接与调试
  • SQL的函数类型
  • TSINGSEE青犀视频智慧电梯管理平台,执行精准管理、提升乘梯安全
  • VMware:在部分链上无法执行所调用的函数,请打开父虚拟磁
  • 【数据结构 08】红黑树
  • 【百度Apollo】自动驾驶规划技术:实现安全高效的智能驾驶
  • 《C程序设计》上机实验报告(五)之一维数组二维数组与字符数组
  • 【BUG】联想Y7000电池电量为0且无法充电解决方案汇总
  • centos7常用命令之安装插件2
  • MATLAB - 仿真单摆的周期性摆动
  • Pandas进阶--map映射,分组聚合和透视pivot_table详解
  • Visual Studio 和Clion配置Cocos2d-x环境
  • 【百度Apollo】本地调试仿真:加速自动驾驶系统开发的利器
  • ztest中ddof起什么作用
  • linux 主机无法联网问题
  • 2024/1/27 备战蓝桥杯 1-1
  • 支持下一代网络IpV6的串口服务器,IpV6串口485接口转网口
  • uniapp H5 实现上拉刷新 以及 下拉加载
  • 网络工程师必学知识:2、IPv4和IPv6地址划分
  • Rust - 变量
  • 【Linux】压缩脚本、报警脚本
  • 用Flask打造一个大模型智能问答WEB网站
  • 学习python第三天