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

依然范特西╮ 提交于 2019-12-08 17:40:22

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/14257020/how-to-merge-row-in-one-cell-in-table-layout-in-android-dynamically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!