title: Reload a View on Orientation Change
body: <p>In my Activity I have a View that "depends" from screen orientation. If it's in landscape mode, i use a layout under <b>layout-large-hand</b>, but if it's in portrait mode, I use the layouts under the <b>layouts</b> folder.
  The Activity shows also a Map with some markers and informations.</p>
  
  <p>In my AndroidManifest i have</p>
  
  <pre><code>android:configChanges="orientation|screenSize"
  </code></pre>
  
  <p>But the activity shows only the layout on portrait mode.</p>
  
  <p>How can I fix this?</p>
  
  <p>EDIT 3/12:</p>
  
  <p>I have a layout like this:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical" &gt;
  
  &lt;fragment
      android:id="@+id/map"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      class="com.google.android.gms.maps.MapFragment" /&gt;
  
  &lt;include
      android:id="@+id/my_view"
      layout="@layout/my_view"
      android:visibility="gone" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and i want that my_view changes the layout, but map remains with all markers, zoom level, position, ecc ecc...</p>
  
  <p>my_view is visible when i click on a Button created dinamically in the activity.</p>
  
  <p>EDIT 2:</p>
  
  <p>Like SweetWisher ツ says, i was trying to setup a custom behaviour for the views. But when i rotate the device, the map disappear. This is part of my code in the activity:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      initUI();
  }
  
  private void initUI() {
      setContentView(R.layout.my_layout);
  
      if (mp == null) {
          mp = MapFragment.newInstance();
      }
      getFragmentManager().beginTransaction().replace(R.id.placeholder, mp).commit();
  
      initUIStuff()
  }
  
  private void initUIStuff(){
  
  }
  
  
  
  @Override
  public void onConfigurationChanged(Configuration newConfig) {
      super.onConfigurationChanged(newConfig);
      initUI();
  
  }
  
  @Override
  protected void onStart() {
      super.onStart();
      initGMap();
  }
  
  @Override
  protected void onResume() {
  
      super.onResume();
      initGMap();
  }
  
  private void initGMap() {
      if (mp != null  {
          //Initialize Map
      }
  }
  </code></pre>