I am new to android programming, i just started a few days ago, but I
have be using Java for about four years.  I am making a program that
will take in some values and run some calculations for a composites
project.  As the first page I need it to allow the user to enter
values in an "editbox" and then click the save button and take in all
the values.  As of right now this puts the save button at the top of
the screen even though i told it to go below the table layout.  I also
tried putting "android:layout_below = "@id/VF" " but that did not work
either.  Any Suggestions?

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
                android:id = "@+id/table"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#0000aa"
                android:padding="10px" >
 <TableLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:stretchColumns="1">

    <TableRow>
        <TextView
            android:layout_column="1"
            android:text="E_fiber"
            android:padding="3dip" />
        <EditText
                        android:id="@+id/E_fiber"
                        android:layout_width="100dip"
                        android:layout_height="wrap_content"
                        android:gravity="right"/>
    </TableRow>

    <View
        android:layout_height="2dip"
        android:background="#FF909090" />

    <TableRow>
        <TextView
            android:layout_column="1"
            android:text="E_matrix"
            android:padding="3dip" />
        <EditText
                        android:id="@+id/E_matrix"
                        android:layout_width="100dip"
                        android:layout_height="wrap_content"
                        android:gravity="right"/>
    </TableRow>

    <View
        android:layout_height="2dip"
        android:background="#FF909090" />

        <TableRow>
        <TextView
            android:layout_column="1"
            android:text="NU_fiber"
            android:padding="3dip" />
        <EditText
                        android:id="@+id/NU_fiber"
                        android:layout_width="100dip"
                        android:layout_height="wrap_content"
                        android:gravity="right"/>
    </TableRow>

    <View
        android:layout_height="2dip"
        android:background="#FF909090" />

        <TableRow>
        <TextView
            android:layout_column="1"
            android:text="NU_matrix"
            android:padding="3dip" />
        <EditText
                        android:id="@+id/NU_matrix"
                        android:layout_width="100dip"
                        android:layout_height="wrap_content"
                        android:gravity="right"/>
    </TableRow>

    <View
        android:layout_height="2dip"
        android:background="#FF909090" />

        <TableRow>
        <TextView
            android:layout_column="1"
            android:text="Volume Fraction"
            android:padding="3dip" />
        <EditText
                        android:id="@+id/VF"
                        android:layout_width="100dip"
                        android:layout_height="wrap_content"
                        android:gravity="right"/>
    </TableRow>

    <View
        android:layout_height="2dip"
        android:background="#FF909090" />
   </TableLayout>
  <Button
    android:id = "@+id/save"
    android:text = "Save"
    android:layout_height = "wrap_content"
    android:layout_width = "wrap_content"
    android:padding = "10dip"
    android:layout_below = "@id/table"/>
</RelativeLayout>


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to