I have set up the layout as follows, it is the vertical format, and when i change it to the horizontalorientation it totally messes up bad.
But when I change the orientation of the device, it becomes like this:
Can anyone please help me to fix this ?
And the XML code for the following is follows:
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center" >
<Button
android:id="@+id/bBackfromInquiry"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@drawable/back" />
<Button
android:id="@+id/bSubmit"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:background="@drawable/mail_us" />
<EditText
android:id="@+id/etMailbody"
android:layout_width="wrap_content"
android:layout_height="150dp"
android:layout_above="@+id/bSubmit"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:ems="10"
android:hint="@string/inqhintComments" />
<EditText
android:id="@+id/etPhone"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/textView5"
android:layout_alignParentLeft="true"
android:layout_marginBottom="27dp"
android:ems="10"
android:hint="@string/inqhintPhone"
android:inputType="phone" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/bBackfromInquiry"
android:layout_alignBottom="@+id/bBackfromInquiry"
android:layout_marginLeft="17dp"
android:layout_toRightOf="@+id/bBackfromInquiry"
android:text="@string/buttonInquiry"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:text="@string/inqComments"
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/etName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/bBackfromInquiry"
android:ems="10"
android:hint="@string/inqhintName"
android:inputType="textPersonName" >
<requestFocus />
</EditText>
<EditText
android:id="@+id/etEmail"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/etName"
android:layout_marginTop="15dp"
android:ems="10"
android:hint="@string/inqhintEmail"
android:inputType="textEmailAddress" />
</RelativeLayout>