I have this code:
<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <EditText android:id="@+id/editText" android:layout_width="match_parent" android:layout_height="85dp" android:ems="10" android:inputType="textPostalAddress" android:text="neshto"> <requestFocus /> </EditText> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" > <Button android:id="@+id/buttonOk" android:layout_width="75dp" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_weight="0.5" android:text="Ok" /> <Button android:id="@+id/buttonCancel" android:layout_width="75dp" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_weight="0.5" android:text="Cancel" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" > </LinearLayout> <Spinner android:id="@+id/size" android:layout_width="match_parent" android:layout_height="wrap_content" /> <Spinner android:id="@+id/color" android:layout_width="match_parent" android:layout_height="wrap_content"/>
I canβt post the image with the result I'm looking for, but I want the two OK and Cancel buttons to be at the bottom, and the two spinners standing almost directly to the text box. But I can not handle these layouts. Can someone give me an idea? I have tried this many times, but it still does not look the way I want.
source share