简体   繁体   English

如何动态地在android中的表格布局中的一个单元格中合并行?

[英]How to merge row in one cell in Table Layout in android, dynamically?

how to get below functionality in android with Table Layout. 如何使用表格布局获得Android下面的功能。 As it is seen in the image, I need to merge the two cells in row #5 - column #1 and row#6 - column#1 dynamically and I have to replace one image over there. 正如在图像中看到的那样,我需要合并第5行 - 第1列第6行 - 第1列中的两个单元格,我必须在那里替换一个图像。 How can I achieve this? 我怎样才能做到这一点? Your answers are appreciated. 感谢您的回答。

合并两个单元格

Use GridLayout instead of TableLayout. 使用GridLayout而不是TableLayout。 You can easily merge cells using GridLayout. 您可以使用GridLayout轻松合并单元格。 http://developer.android.com/reference/android/widget/GridLayout.html http://developer.android.com/reference/android/widget/GridLayout.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM