【问题标题】:How to merge row in one cell in Table Layout in android, dynamically?如何在android的表格布局中动态合并一个单元格中的行?
【发布时间】:2013-01-10 11:34:19
【问题描述】:

如何通过表格布局在 android 中获得以下功能。 如图所示,我需要动态合并 row #5 - column #1row#6 - column#1 中的两个单元格,我必须在那里替换一张图像。我怎样才能做到这一点?感谢您的回答。

【问题讨论】:

标签: android android-layout android-tablelayout


【解决方案1】:

使用 GridLayout 而不是 TableLayout。您可以使用 GridLayout 轻松合并单元格。 http://developer.android.com/reference/android/widget/GridLayout.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-23
    • 2014-02-27
    • 1970-01-01
    • 2016-11-09
    • 2014-05-13
    相关资源
    最近更新 更多