title: Android Fragments: When to use hide/show or add/remove/replace?
body: <p>Suppose I wish to replace the current fragment in some container view with another. Is it better to use replace...</p>
  
  <pre><code>    FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
      ft.replace(R.id.fragment_container, newFragment, null);
      ft.commit();
  </code></pre>
  
  <p>... or the following, with show and hide?</p>
  
  <pre><code>    FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
      ft.hide(oldFragment);
      ft.show(newFragment);
      ft.commit();
  </code></pre>
  
  <p>Is one way of doing this more efficient? Can't find much information on when to use these methods, or how they affect the lifecycle of the fragments involved.
  Thanks!</p>