title: Fragment replace not working when using ChildFragmentManager in Android
body: <p>I want to add a fragment as a <strong>child</strong> to another fragment<br/>
  I am using <strong>ChildFragmentManager</strong><br/><br/> </p>
  
  <p>Here is my <a href="http://pastebin.com/R6YBW7ZT" rel="nofollow noreferrer">ChildFragmentManagerActivity.java</a><br/>
  <a href="http://pastebin.com/vbWg0DhB" rel="nofollow noreferrer">ChildFragment.java</a><br/>
  <a href="http://pastebin.com/vdX57KwT" rel="nofollow noreferrer">ParentFragment.java</a><br/> whose layouts are as as follows <br/>
  <a href="http://pastebin.com/YvMHK8xp" rel="nofollow noreferrer">activity_childfragmentmanager.xml</a><br/>
  <a href="http://pastebin.com/W4A2Ap3p" rel="nofollow noreferrer">layout_parentfragment.xml</a><br/>
  <a href="http://pastebin.com/b2qAAFJi" rel="nofollow noreferrer">layout_childfragment.xml</a><br/></p>
  
  <p>I was able to add the <strong>ParentFragment</strong> successfully. Please check below image <br/>
   <img src="https://i.stack.imgur.com/tz2GX.png" alt="parent_fragment.png"><br/></p>
  
  <p>But when i try to add the <strong>ChildFragment</strong>, it is appearing as follows <br/>
   <img src="https://i.stack.imgur.com/ob3uE.png" alt="child_fragment"><br/></p>
  
  <p><strong>I want the child fragment to be added as a content by replacing the previous layout</strong> <br/>
  <strong>Thanks in Advance</strong></p>