gpt4 book ai didi

Android TableRow RelativeLayout 问题

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:12:19 25 4
gpt4 key购买 nike

我有以下内容

<TableRow xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/admin_row"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal">
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:background="@color/silver">

我动态填充表格,但相对布局颜色为银色,它仅跨越表格行的大约 3/4。如果我将 LinearLayout 放置在水平方向上,它会完全跨越,但如果我将其更改为垂直方向,则会出现同样的问题。我需要表格行中的相对布局,因为我需要这样的东西:

值(value)
详细更多详细信息。

关于让相对布局跨越表格行有什么想法吗?

最佳答案

尝试在 TableLayout 标签上设置 android:stretchColumns="0"或 android:stretchColumns="*"。

关于Android TableRow RelativeLayout 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2095175/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com