title: specify different layouts for portrait and landscape orientations?
body: <p>I've specify two separate layout xml files for an activity, one for Portrait in res/layout folder and one for Landscape in res/layout-land folder. my actual problem is that when i launch application in portrait mode it takes ui from layout and instantly i rotate my phone it doesn't take xml from layout-land folder it takes ui from layout folder and if i launch my app in landscape mode it takes xml from layout-land folder and instantly rotate my to portrait mode it take xml from layout-land ui doesn't change to portrait ui.</p>
  
  <p>can any buddy tell me whats the problem is there any setting required for that plz help me to solve this issue .</p>
  
  <p>Thanks in advance . </p>
  
  <pre><code>    this is my landscape ui xml
  
          &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/widget57"
          android:layout_width="400dp"
          android:layout_height="400dp"
          android:layout_gravity="center|center_vertical"
          android:layout_marginTop="30dp"
          android:orientation="vertical" &gt;
  
          &lt;TableRow
              android:id="@+id/tableRow1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="40dp" &gt;
  
              &lt;TextView
                  android:id="@+id/txtName"
                  android:layout_width="90dp"
                  android:text="@string/UserName" /&gt;
  
              &lt;EditText
                  android:id="@+id/edName"
                  android:imeOptions="actionNext|actionDone"
                  android:paddingRight="10dp"
                  android:singleLine="true"
                  android:width="240dp" /&gt;
          &lt;/TableRow&gt;
  
          &lt;TableRow
              android:id="@+id/tableRow2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" &gt;
  
              &lt;TextView
                  android:id="@+id/txtPass"
                  android:layout_width="90dp"
                  android:text="@string/PassWord" /&gt;
  
              &lt;EditText
                  android:id="@+id/edPass"
                  android:imeOptions="actionGo"
                  android:paddingRight="10dp"
                  android:password="true"
                  android:singleLine="true"
                  android:width="240dp" /&gt;
          &lt;/TableRow&gt;
  
           &lt;LinearLayout
              android:id="@+id/widget57"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_gravity="center"
              android:orientation="vertical" &gt;
  
              &lt;Button
                  android:id="@+id/btnLogin"
                  android:layout_width="150dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginTop="10dp"
                  android:text="@string/btn_GO"
                  android:textSize="19sp" &gt;
              &lt;/Button&gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginTop="30dp"
                  android:text="CoinOp Solutions"
                  android:textSize="30sp"
                  android:textStyle="bold" /&gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginTop="10dp"
                  android:text="Version 0.1" /&gt;
          &lt;/LinearLayout&gt;
  
  
      &lt;/TableLayout&gt;
  
      this is my Portrait ui
  
          &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/widget57"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:orientation="vertical" &gt;
  
          &lt;TextView
              android:id="@+id/txt_Required"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="15dp"
              android:text=""
              android:textColor="#ffff0000" &gt;
          &lt;/TextView&gt;
  
          &lt;TextView
              android:id="@+id/txtName"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="15dp"
              android:text="@string/UserName" &gt;
          &lt;/TextView&gt;
  
          &lt;EditText
              android:id="@+id/edName"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:imeOptions="actionNext|actionDone"
              android:singleLine="true"
              android:textSize="18sp" &gt;
          &lt;/EditText&gt;
  
          &lt;TextView
              android:id="@+id/txtPass"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="10dp"
              android:text="@string/PassWord" &gt;
          &lt;/TextView&gt;
  
          &lt;EditText
              android:id="@+id/edPass"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:imeOptions="actionGo"
              android:maxLines="1"
              android:password="true"
              android:singleLine="true"
              android:textSize="18sp" &gt;
          &lt;/EditText&gt;
  
          &lt;LinearLayout
              android:id="@+id/widget57"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_gravity="center"
              android:orientation="vertical" &gt;
  
              &lt;Button
                  android:id="@+id/btnLogin"
                  android:layout_width="150dp"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginTop="10dp"
                  android:text="@string/btn_GO"
                  android:textSize="19sp" &gt;
              &lt;/Button&gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginTop="30dp"
                  android:text="CoinOp Solutions"
                  android:textSize="30sp"
                  android:textStyle="bold" /&gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginTop="10dp"
                  android:text="Version 0.1" /&gt;
          &lt;/LinearLayout&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>My manifest file </p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package=""
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="8" /&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
      &lt;application
          android:debuggable="true"
          android:icon="@drawable/coinop"
          android:label="@string/app_name"
          android:theme="@style/CustomTheme" &gt;
          &lt;activity
              android:name=".LoginActivity"
              android:configChanges="orientation"
              android:label="@string/app_name"
              android:windowSoftInputMode="stateVisible|adjustPan" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".ShowDbList"
              android:configChanges="orientation"
              android:label="@string/app_name"
              android:windowSoftInputMode="adjustPan" &gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".Menu"
              android:configChanges="orientation"
              android:label="@string/app_name"
              android:windowSoftInputMode="adjustPan" &gt;
          &lt;/activity&gt;
  </code></pre>