title: ViewGroup.java AddViewInner issue
body: <p>i keep getting following errors, it's basically same error but keeps occuring on different lines  </p>
  
  <blockquote>
    <p>Fatal Exception: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
           at android.view.ViewGroup.addViewInner(ViewGroup.java:3883)</p>
    
    <p>Fatal Exception: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
           at android.view.ViewGroup.addViewInner(ViewGroup.java:4312)</p>
    
    <p>Fatal Exception: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
           at android.view.ViewGroup.addViewInner(ViewGroup.java:4310)</p>
  </blockquote>
  
  <p>Things i have tried :-</p>
  
  <ul>
  <li><p>while adding any fragment i add this code in onCreateView</p>
  
  <p>((ViewGroup) view.getParent()).removeView(view);
  view = inflater.inflate(R.layout.create_carpool_layout, container, false);
  return view;</p>
  
  <p>and then inflate the view </p></li>
  <li><p>While inflating layouts / views in adapter also i make sure the view is removed from parent view</p></li>
  </ul>
  
  <p>I am not sure what is causing this problem</p>