【问题标题】:How to make vertical span in android table layout如何在android表格布局中制作垂直跨度
【发布时间】:2013-01-24 19:07:20
【问题描述】:

我有 3 行 3 列,我想将图像放置在 (1,1) 位置,并将其垂直跨越以保持垂直位置,可以这样做吗?

【问题讨论】:

    标签: android android-layout android-intent android-widget


    【解决方案1】:

    添加 android:layout_span="3" 以跨越 3 列。例如:

        <TableRow>
            <Button android:id="@+id/item_id"
                android:layout_span="3"
                android:layout_width="wrap_content" 
                android:layout_height="wrap_content" 
                android:text="item text" />     
        </TableRow>
    

    【讨论】:

    • 这个是水平跨度,我需要垂直跨度
    猜你喜欢
    • 2013-05-13
    • 2010-12-19
    • 1970-01-01
    • 1970-01-01
    • 2019-05-29
    • 2013-04-14
    • 1970-01-01
    • 2020-06-10
    • 2019-04-13
    相关资源
    最近更新 更多