The xml below works for me. Can you try to 'copy paste' my xml and give it a try? you can see the screenshots here
http://www.techjini.com/device.png http://www.techjini.com/device1.png http://www.techjini.com/device2.png xml --------------------- <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android= "http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scrollbars="vertical"> <RelativeLayout android:id="@+id/widget46" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" > <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" android:id="@+id/widget45" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <EditText android:id="@+id/editName" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="10px" android:text="Name" android:textSize="18sp" android:layout_weight="1" > </EditText> <Button android:id="@+id/findLocation" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Find" android:layout_weight="1" > </Button> </LinearLayout> <LinearLayout android:id="@+id/widget48" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@+id/widget45" android:layout_alignLeft="@+id/widget45" > <EditText android:id="@+id/editAddress" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Address" android:textSize="18sp" > </EditText> </LinearLayout> <LinearLayout android:id="@+id/widget48a" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@+id/widget48" android:layout_alignLeft="@+id/widget48" > <Button android:id="@+id/getLocation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Use Current Location" android:layout_gravity="right" > </Button> <CheckBox android:id="@+id/oneTimeEvent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="One time event" android:textSize="12sp" > </CheckBox> </LinearLayout> <LinearLayout android:id="@+id/widget56" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@+id/widget48a" android:layout_alignLeft="@+id/widget45" android:padding="5sp" > <TextView android:text="From" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:textSize="14sp" android:textColor="#ffffffff" /> <Button android:id="@+id/editStartDate" android:layout_height="wrap_content" android:text="Start Date" android:layout_width="wrap_content" android:layout_weight="2" > </Button> <Button android:id="@+id/editStartTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Start Time" android:layout_gravity="right" android:layout_weight="1" > </Button> </LinearLayout> <LinearLayout android:id="@+id/widget59" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@+id/widget56" android:layout_alignLeft="@+id/widget45" android:padding="5sp" > <TextView android:text="To " android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:textSize="14sp" android:textColor="#ffffffff" /> <Button android:id="@+id/editEndDate" android:layout_height="wrap_content" android:text="End Date" android:layout_width="wrap_content" android:layout_weight="2" > </Button> <Button android:id="@+id/editEndTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="End Time" android:layout_gravity="right" android:layout_weight="1" > </Button> </LinearLayout> <LinearLayout android:id="@+id/widget63" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:layout_below="@+id/widget59" android:layout_alignLeft="@+id/widget45" > <EditText android:id="@+id/editNotes" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Notes" android:textSize="18sp" > </EditText> </LinearLayout> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" android:id="@+id/widget68" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/widget63" android:layout_alignLeft="@+id/widget45" android:padding="5sp" > <Button android:id="@+id/okBtn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Save" android:layout_weight="1" > </Button> <Button android:id="@+id/delBtn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Delete" android:layout_weight="1" > </Button> <Button android:id="@+id/cancelBtn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Cancel" android:layout_weight="1" > </Button> </LinearLayout> </RelativeLayout> </ScrollView> On Jan 18, 11:31 pm, "Faber Fedor" <[email protected]> wrote: > On Sun, Jan 18, 2009 at 11:11 AM, conan <[email protected]> wrote: > > > I tried the following layout and works fine for me.... > > Really? Hmmm.. > > > > > <LinearLayout > > android:id="@+id/widget45" > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" > > android:orientation="horizontal" > > > <EditText > > android:id="@+id/editName" > > android:layout_width="fill_parent" > > And this doesn't push the button off the screen (or overlay it or whatever)? > > When I use your settings, the editName field stretches across the screen, > the button is not seen and there is a empty area below the EditText the same > size and shape as the EditText. > > If this is not working can you tell what else do you have in your > > > layout? > > Sure! Here's the whole thing: > > <?xml version="1.0" encoding="utf-8"?> > <ScrollView xmlns:android= > "http://schemas.android.com/apk/res/android" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:scrollbars="vertical"> > <RelativeLayout > android:id="@+id/widget46" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > xmlns:android="http://schemas.android.com/apk/res/android" > > <LinearLayout > android:id="@+id/widget45" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:orientation="horizontal" > > > <EditText > android:id="@+id/editName" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:padding="10px" > android:text="Name" > android:textSize="18sp" > android:layout_gravity="right" > android.layout_weight="1" > > > </EditText> > <Button > android:id="@+id/findLocation" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="Find" > android:layout_gravity="right" > android.layout_weight="1" > > > </Button> > </LinearLayout> > <LinearLayout > android:id="@+id/widget48" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:layout_below="@+id/widget45" > android:layout_alignLeft="@+id/widget45" > > > <EditText > android:id="@+id/editAddress" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="Address" > android:textSize="18sp" > > > </EditText> > </LinearLayout> > <LinearLayout > android:id="@+id/widget48a" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:layout_below="@+id/widget48" > android:layout_alignLeft="@+id/widget48" > > > <Button > android:id="@+id/getLocation" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Use Current Location" > android:layout_gravity="right" > > > </Button> > <CheckBox > android:id="@+id/oneTimeEvent" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="One time event" > android:textSize="12sp" > > > </CheckBox> > </LinearLayout> > <LinearLayout > android:id="@+id/widget56" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:layout_below="@+id/widget48a" > android:layout_alignLeft="@+id/widget45" > android:padding="5sp" > > > <TextView > android:text="From" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_alignParentLeft="true" > android:textSize="14sp" > android:textColor="#ffffffff" > /> > <Button > android:id="@+id/editStartDate" > android:layout_height="wrap_content" > android:text="Start Date" > android:layout_width="wrap_content" > android:layout_weight="2" > > > </Button> > <Button > android:id="@+id/editStartTime" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Start Time" > android:layout_gravity="right" > android:layout_weight="1" > > > </Button> > </LinearLayout> > <LinearLayout > android:id="@+id/widget59" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:layout_below="@+id/widget56" > android:layout_alignLeft="@+id/widget45" > android:padding="5sp" > > > <TextView > android:text="To " > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_alignParentLeft="true" > android:textSize="14sp" > android:textColor="#ffffffff" > /> > <Button > android:id="@+id/editEndDate" > android:layout_height="wrap_content" > android:text="End Date" > android:layout_width="wrap_content" > android:layout_weight="2" > > > </Button> > <Button > android:id="@+id/editEndTime" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="End Time" > android:layout_gravity="right" > android:layout_weight="1" > > > </Button> > </LinearLayout> > <LinearLayout > android:id="@+id/widget63" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:orientation="vertical" > android:layout_below="@+id/widget59" > android:layout_alignLeft="@+id/widget45" > > > <EditText > android:id="@+id/editNotes" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:text="Notes" > android:textSize="18sp" > > > </EditText> > </LinearLayout> > <LinearLayout > android:id="@+id/widget68" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:layout_below="@+id/widget63" > android:layout_alignLeft="@+id/widget45" > android:padding="5sp" > > > <Button > android:id="@+id/okBtn" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Save" > android:layout_gravity="left" > > > </Button> > <Button > android:id="@+id/delBtn" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Delete" > android:layout_gravity="center_horizontal" > > > </Button> > <Button > android:id="@+id/cancelBtn" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Cancel" > android:layout_gravity="right" > > > </Button> > </LinearLayout> > </RelativeLayout> > </ScrollView> > > -- > > Faber Fedor > Cloud Computing New Jerseyhttp://cloudcomputingnj.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

