I have two TableLayouts, one above the other, in my View. I want them to act as a single table for the purpose of calculating column widths, but appear separately with a gap between them (and the main View background showing through) for aesthetic reasons.
Each table has 3 columns, and I want the column widths sized automatically depending on content, but I just want the columns to line up nicely with the same widths in both tables.
At the moment my tables look like this:
+---------------------------+
| | | |
| | | |
+---------------------------+
+---------------------------+
| | | |
| | | |
| | | |
| | | |
+---------------------------+
But I want them to look like this:
+---------------------------+
| | | |
| | | |
+---------------------------+
+---------------------------+
| | | |
| | | |
| | | |
| | | |
+---------------------------+
The only way I can see of getting what I want is to apply a fixed width to the columns in questions, but that defeats the point of having the TableLayout calculate the widths for me.
Is it at all possible?