安卓开发——如何让控件充满剩余父类容器

来源:互联网 发布:淘宝百阅街怎么下载 编辑:程序博客网 时间:2024/06/09 19:08

一、高度充满父类容器

android:layout_width="自定义"

android:layout_height="0dp"

android:layout_weight="1"

二、宽度充满父类容器

android:layout_width="0dp"

android:layout_height="自定义"

android:layout_weight="1"


0 0
原创粉丝点击