What is the equivalent of "colspan" in an Android TableLayout?
Posted
by Spike Williams
on Stack Overflow
See other posts from Stack Overflow
or by Spike Williams
Published on 2010-04-26T02:24:05Z
Indexed on
2010/04/26
2:33 UTC
Read the original article
Hit count: 756
android
I'm using a TableLayout in Android. Right now I have one TableRow with two items in it, and, below that, a TableRow with one item it it. It renders like this:
-----------------------------
| Cell 1 | Cell 2 |
-----------------------------
| Cell 3 |
---------------
What I want to do is make Cell 3 stretch across both upper cells, so it looks like this:
-----------------------------
| Cell 1 | Cell 2 |
-----------------------------
| Cell 3 |
-----------------------------
In HTML I'd use a COLSPAN.... how do I make this work in Android?
© Stack Overflow or respective owner