I have a hard time understanding the layout tutorial. I am not able to align columns on different rows. For example, what does 3dip mean in android:padding="3dip". The documentation says "Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). ".
Specifically, I want to create a layout with top and bottom two rows, and the middle are lists. And I want the bottom row to stick to the bottom. e.g.,
title1 | title 2| title 3|
list 1
list 2
bottom 1 | bottom 2 |
My current xml looks very ugly (without the middle lists)
<?xml version="1.0" encoding="utf-8"?>
<TableRow>
<TextView
android:layout_width="wrap_content"
android:gravity="center_horizontal"
android:text="title 1"
/>
<TextView
android:layout_width="wrap_content"
android:gravity="center_horizontal"
android:text="title 2"
/>
<TextView
android:layout_width="wrap_content"
android:gravity="center_horizontal"
android:text="title 3"
/>
</TableRow>
<View android:layout_height="2dip"
android:background="#FF909090" />
<TableRow>
<TextView
android:layout_width="wrap_content"
android:gravity="center_horizontal"
android:text="bottom 1"
/>
<TextView
android:layout_width="wrap_content"
android:gravity="center_horizontal"
android:text="bottom 2"
/>
</TableRow>