简体   繁体   中英

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

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.

合并两个单元格

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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