Hallo!

I'm suffering again a layout issue.
My requirnments are:
 * header which is always visible
 * scrollview containing a table (with 2 edittexts (single line) and a 
edittextfield, that is multisline and should fill up all the rest of the 
screen (except a button at the bottom of the screen).
 * a button at the bottom of the screen.

However it was impossible for me, to get the third edittext filling up the 
rest of the empty screen. I tried it using a tutorial found here 
http://www.curious-creature.org/2010/08/15/scrollviews-handy-trick/ by 
Romain. 

My layout.xml is posted below... do you have any idea, what I messed up this 
time?

Thanks in advance
Patrick



*<?xml version="1.0" encoding="UTF-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android";
    android:layout_height="fill_parent" android:layout_width="fill_parent">

    <LinearLayout android:id="@+id/documentcreation.content.header"
        android:layout_width="fill_parent" 
android:layout_height="wrap_content"
        android:paddingLeft="6dip" android:paddingRight="6dip"
        android:paddingTop="6dip" android:layout_alignParentTop="true"
        android:orientation="vertical">

        <LinearLayout android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
android:orientation="horizontal">

            <ImageView android:src="@drawable/sex_unkown"
                android:layout_width="wrap_content" 
android:layout_height="wrap_content"
                android:id="@+id/documentcreation.upload.folderImage" />

            <TextView android:text="" android:layout_width="fill_parent"
                android:layout_height="wrap_content" 
android:paddingLeft="6dip"
                android:paddingRight="6dip" android:paddingTop="6dip"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:id="@+id/documentcreation.upload.foldername" />
        </LinearLayout>
        <View android:layout_width="fill_parent" 
android:layout_height="2dip"
            android:background="#FF909090" android:paddingTop="10dip"
            android:paddingBottom="10dip" />
    </LinearLayout>


    <ScrollView android:fillViewport="true" android:visibility="visible"
        android:layout_width="fill_parent" 
android:layout_height="fill_parent"
        android:layout_below="@+id/documentcreation.content.header"
        android:layout_above="@+id/documentcreation.upload.footer">
        <TableLayout android:stretchColumns="1"
            android:layout_width="fill_parent" 
android:layout_height="fill_parent">
            <TableRow>
                <TextView android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    
android:text="@string/documentcreation.upload.submissionTitle" />
                <EditText android:text=""
                    
android:id="@+id/documentcreation.upload.submissionTitleEditText"
                    android:layout_width="fill_parent" 
android:layout_height="wrap_content"
                    android:layout_span="3" 
android:singleLine="true"></EditText>
            </TableRow>

            <TableRow>
                <TextView android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    
android:text="@string/documentcreation.upload.documentTitle" />
                <EditText android:text=""
                    
android:id="@+id/documentcreation.upload.documentTitleEditText"
                    android:layout_width="fill_parent" 
android:layout_height="wrap_content"
                    android:layout_span="3" 
android:singleLine="true"></EditText>
            </TableRow>
            <TableRow>
                <View android:layout_height="2dip" 
android:background="#FF909090"
                    android:layout_span="4" />
            </TableRow>

            <!-- comment -->
            <TableRow>
                <View android:layout_height="2dip" 
android:background="#FF909090"
                    android:layout_span="4" />
            </TableRow>
            <TableRow>
                <TextView android:layout_width="fill_parent"
                    android:layout_height="wrap_content" 
android:text="@string/documentcreation.upload.comment"
                    android:layout_span="4" />
            </TableRow>
            <TableRow>
                <EditText android:text=""
                    
android:id="@+id/documentcreation.upload.commentEditText"
                    android:layout_width="fill_parent" 
android:layout_height="wrap_content"
                    android:layout_span="4" android:singleLine="false" 
android:lines="4"
                    android:fillViewport="true"></EditText>
            </TableRow>

        </TableLayout>
    </ScrollView>


    <LinearLayout android:id="@+id/documentcreation.upload.footer"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true" 
android:layout_width="fill_parent"
        android:layout_height="wrap_content" 
android:orientation="horizontal"
        style="@android:style/ButtonBar">

        <ImageButton android:id="@+id/documentcreation.upload.submitButton"
            android:layout_width="wrap_content" 
android:layout_height="wrap_content"
            android:layout_weight="1" android:src="@drawable/ok" />
    </LinearLayout>
</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