Hi, all. I'm working on setting up a home screen layout for an Android app in which there is a 4x4 grid of launch icons. My current structure for this is like this:
<TableLayout>
<TableRow>
<LinearLayout android:orientation="vertical">
<ImageButton>
<TextView>
</LinearLayout>
</TableRow>
...
...
...
</TableView>
When I run this, I get a force-close immediately. If I remove the LinearLayout from the equation, it works, but I don't get the alignment I want. Is there something inherently wrong with putting a linearlayout inside of a tablerow? Or is there probably something else going on here? As far as I can tell, my xml is all valid and I think I have all the required attributes I need. This is kind of driving me nuts, as there does not appear to be any documentation about this setup.