FragmentTransaction: ReplaceFragment
<p>I'm making a simple application to understand Fragments in android. 
Everything seems simple, except one i.e. I added multiple fragments dynamcially in a LeniarLayout.
It worked fine, but now when <strong>I try to call replace on that container layout with some other fragment , it doesn't removes all the previously added fragments</strong>. Why such kind of behaviour ?</p>

<p>Android api says "<em>Replace an existing fragment that was added to a container. This is essentially the same as calling remove(Fragment) for all currently added fragments that were added with the same containerViewId and then add(int, Fragment, String) with the same arguments given here</em>."</p>

<p>Please guide me.</p>
