如何合并行中的一个单元格表布局在android系统,动态? [英] How to merge row in one cell in Table Layout in android, dynamically?

查看:828
本文介绍了如何合并行中的一个单元格表布局在android系统,动态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何得到下面的功能与表布局机器人。
由于它在图像中看到的那样,我需要两个单元格合并中的行#5 - #1列行#6 - #1列动态,我要更换一个图像在那里。我怎样才能做到这一点?你的答案是AP preciated。

how to get below functionality in android with Table Layout. 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. How can I achieve this? Your answers are appreciated.

推荐答案

使用网格布局,而不是TableLayout。您可以使用网格布局很容易合并单元格。
http://developer.android.com/reference/android/widget/GridLayout.html

Use GridLayout instead of TableLayout. You can easily merge cells using GridLayout. http://developer.android.com/reference/android/widget/GridLayout.html

这篇关于如何合并行中的一个单元格表布局在android系统,动态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆