title: Change Layouts Dynamically in 1 Activity
body: <p>I have the same request of this <a href="https://stackoverflow.com/questions/4570236/android-change-layout-dynamically">Post</a> and I followed the <a href="https://stackoverflow.com/a/4570977/1629278">FoamyGuy's Answer</a> but I don't get the introLayout with the ImageView displaying. </p>
  
  <p>I just want to show my introLayout first and then change it to my WebView.</p>
  
  <p>here is my main.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:orientation="vertical"
                android:layout_width="match_parent"
                android:layout_height="match_parent"&gt;
  
      &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                      android:id="@+id/introLayout"
                      android:orientation="vertical"
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:gravity="center"
                      android:background="@color/white"
                      android:visibility="visible"
      &gt;
  
          &lt;ImageView android:layout_width="wrap_content"
                     android:contentDescription="splash screen"
                     android:id="@+id/splash"
                     android:src="@drawable/splash"
                     android:layout_height="wrap_content"
                     android:scaleType="centerInside"/&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;WebView
              android:id="@+id/browser"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:visibility="invisible"
      /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>in MainActivity.java</p>
  
  <pre><code>@Override
          public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.main);
  
              RelativeLayout introLayout = (RelativeLayout) findViewById(R.id.introLayout);
              introLayout.setVisibility(View.GONE);
              webview = (WebView)findViewById(R.id.browser);
              webview.setVisibility(1);
      }
  </code></pre>
  
  <p>Help?</p>