when I open this xml file with andriodLayout Editor then it shows first 2 buutons and textview in horizontal orientation and last 2 in horizontal. But when I run application then on emulator it shows all 4 textview and 4 buttons in vertical. How to show first 2 textview and button in horizonta; and last 2 button and textview in horizontal? On Dec 20, 10:54 am, "pramod.deore" <[email protected]> wrote: > Hi, all I have xml file in that there is one radio group which has 3 > radio buttons arranged in horizontal. then there are 4 textfield and 4 > buttons arranged in vertical. But what I want is arrange first 2 > buttons and 2 textfield horizontal and last 2 buttons and 2 textfield > horizontal. I wrote nested linear layout but it is not working. Here > it still shows all buttons and textfield vertical. > > Here is my xml file > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="wrap_content"> > > <TextView android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:textStyle="bold" > android:text="Select Scheduler Type" /> > > <RadioGroup android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:orientation="horizontal" > android:id="@+id/QueGroup1"> > > <RadioButton android:checked="false" > android:id="@+id/option1" android:text="Once"/> > <RadioButton android:checked="false" > android:id="@+id/option2" android:text="Daily"/> > <RadioButton android:checked="false" > android:id="@+id/option3" android:text="Weekly"/> > </RadioGroup> > > <LinearLayout > android:orientation="horizontal" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:gravity="center" > > > <TextView > android:id="@+id/startDate" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="" /> > android:textStyle="bold" > > <Button > android:id = "@+id/pickStartDate" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Start Date" > /> > > <TextView android:id="@+id/starttime" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text=""/> > > <Button android:id="@+id/pickStartTime" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Start Time"/> > </LinearLayout> > > <LinearLayout > android:orientation="horizontal" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:gravity="center" > > > <TextView > android:id="@+id/stopDate" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="" /> > android:textStyle="bold" > > <Button > android:id = "@+id/pickStopDate" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Stop Date" > /> > > <TextView android:id="@+id/stoptime" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text=""/> > > <Button android:id="@+id/pickStopTime" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Stop Time"/> > > </LinearLayout> > > </LinearLayout>
-- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

