title: Android: screen orientation with FrameLayout & relativeLayout
body: <p>I have an android application that consists of main layout of FrameLayout which has two views set in RelativeLayout. (see layout XML files below).
  The problem is with second view (view2) screen orientation (the view turn to black and app is frozen).</p>
  
  <p>I have tried with no success to use the option 
  android:orientation="horizontal"
  in the layout-land resource.</p>
  
  <p>Please advise.</p>
  
  <p>Thank you.
  Oakist</p>
  
  <h2>main.xml</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/container"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"&gt;
  &lt;include android:id="@+id/notelist" layout="@layout/view1" /&gt;
  &lt;include android:id="@+id/notelist" layout="@layout/view2" /&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <h2>view1.xml</h2>
  
  <pre><code>&lt;RelativeLayout android:id="@+id/Layout01"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;ImageView
  android:layout_centerHorizontal="true"
  android:layout_centerVertical="true"
  android:layout_width="wrap_content"
  android:id="@+id/image01"
  android:layout_height="wrap_content"
  &gt;
  &lt;/ImageView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <h2>view2.xml</h2>
  
  <pre><code>&lt;RelativeLayout android:id="@+id/Layout02"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;ImageView
  android:layout_centerHorizontal="true"
  android:layout_centerVertical="true"
  android:layout_width="wrap_content"
  android:id="@+id/image02"
  android:layout_height="wrap_content"
  &gt;
  &lt;/ImageView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>