Android TableRow RelativeLayout Issue

Posted by phogel on Stack Overflow See other posts from Stack Overflow or by phogel
Published on 2010-01-19T16:46:34Z Indexed on 2010/04/28 13:53 UTC
Read the original article Hit count: 783

I have the following

<TableRow xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/admin_row"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:gravity="center_horizontal">
    <RelativeLayout android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:orientation="horizontal"
                    android:background="@color/silver">

I dynamically populate the table but with the relative layout colored silver it only spans about 3/4 of the table row. If I put a LinearLayout with horizontal orientation it spans completely but if I change it to vertical the same problem occurs. I need a relative layout in the table row because I need to something like this:

Value
Detail MoreDetail.

Any ideas on getting the relative layout to span the table row?

© Stack Overflow or respective owner

Related posts about android

Related posts about tablerow