欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > Android >内容正文

Android

android中按钮间隔,Android布局有2个均匀间隔的按钮

发布时间:2025/3/19 Android 38 豆豆
生活随笔 收集整理的这篇文章主要介绍了 android中按钮间隔,Android布局有2个均匀间隔的按钮 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

我有这个布局正常工作,相对布局与文本视图和两个按钮均匀分布在它下面.

android:layout_width="fill_parent"

android:layout_height="wrap_content" android:padding="5px"

android:visibility="gone"

android:layout_below="@+id/ad"

android:background="#80000000">

android:layout_height="wrap_content" android:text="Entry Popup..."

android:textColor="#ffffffff"

android:textSize="20sp" />

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:layout_below="@id/title">

android:layout_height="fill_parent"

android:layout_width="0dip"

android:layout_weight="1"/>

android:layout_width="0dip"

android:layout_weight="1"

android:layout_height="fill_parent"/>

但是运行layoutopt它说“这个TableRow布局或它的TableLayout父级可能无用”.

有没有办法在没有表格的情况下进行此布局?

总结

以上是生活随笔为你收集整理的android中按钮间隔,Android布局有2个均匀间隔的按钮的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。