I’m currently having the following problem:
I’ve got a TableView that is given TableRow’s to be added to it with data. I want each TableRow to contain 2 TextView’s having a width of the parent and are underneath each other, for example:
| TextView1.............. |
| TextView2.............. |
| .........EndOfTextView2 |
In my example above, it’s just showing that I also want the second TextView to be able to run over multiple lines.
Here is the XML for my TableLayout:
<TableLayout
android:id="@+id/feed"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="5px"
android:stretchColumns="1"
>
</TableLayout>
Used to iOS so I’m kind of new in this XML/Java style mobile programming department.
EDIT:
I ended up adding a LinearLayout to the TableRow, is this the best way to do it?
You have several ways to do it:
The links above are for the android site tutorials for
ListViewandRelativeLayout.Pros/Cons: