3.7学习总结

今天学习了布局4TableLayout

<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:collapseColumns="1"    设置需要被隐藏的列的序号,从0开始
android:stretchColumns="0"      设置允许被拉伸的列的序号,从0开始
android:shrinkColumns="0">      设置允许被收缩的列的序号,从0开始

<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="2"
android:layout_span="3"
android:text="first">
</Button>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="second">
</Button>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="third">
</Button>
</TableLayout>
posted @   代不动码  阅读(5)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
点击右上角即可分享
微信分享提示