I am trying to align a label with an item inside a TableLayout. The
attributes for layout have no effect in relation to the item in the
table (it aligns with the table itself properly). Everything is id'd
properly and there are no syntax errors. Is this a bug or is this by
design? Is there a way around it (while still using the table)? I do
not want to insert it in a row, I want the real table to be centered
vertically on the screen as it is and then the label above it. Thank
you.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android";
        android:id="@+id/tree_information_screen"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <TableLayout
                android:id="@+id/information_table"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content">

                <TableRow>
                <TextView
                    android:text="Species:"
                    android:padding="3dip"
                    android:layout_gravity="left"/>
                <Spinner
                                android:id="@+id/species_spinner"
                                android:layout_width="85dip"
                                android:layout_height="wrap_content"
                                
android:prompt="@string/species_spinner_prompt"/>
                </TableRow>
        </TableLayout>

        <TextView
                android:id="@+id/arbor_link_label"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="3dip"
                android:layout_above="@id/information_table"
                android:layout_alignLeft="@id/species_spinner"
                android:text="Arbor Day Tree Identification Help"/>

</RelativeLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to