title: How to call Fragment inside a Fragment
body: <p>I  have created a fragment, and used this inside another Fragment layout.</p>
  
  <p>This is the XML of my layout.</p>
  
  <pre><code>&lt;WebView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/wv_facebook"
      &gt;
  
  &lt;/WebView&gt;
  
  
  &lt;fragment
      class="com.loading.LoadingAnimation"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/wv_facebook_loadingAnimation"
  
      /&gt;
  </code></pre>
  
  <p>Now i want to get the ID of this <code>fragment</code>. I used following procedure but i am getting <code>incompatible type</code> error message. </p>
  
  <pre><code>Loading Animation loadingAnimation;
  
   loadingAnimation = (LoadingAnimation) getFragmentManager().findFragmentById(R.id.wv_facebook_loadingAnimation);
  </code></pre>
  
  <blockquote>
    <p>Required <code>LoadingAnimation</code> Found android.support.v4.app.fragment</p>
  </blockquote>