How to apply row span in tablelayout?

miguel picture miguel · Apr 21, 2013 · Viewed 32.6k times · Source

How to apply row_span to TableLayout?

I want to make something similar to this image, but i don't know how to do it.

table image

What is the correct way to make something like this?

Answer

CommonsWare picture CommonsWare · Apr 21, 2013

TableLayout does not support row spans, only column spans. GridLayout supports both row and column spans:

GridLayout sample

(picture from http://android-developers.blogspot.com/2011/11/new-layout-widgets-space-and-gridlayout.html)