title: Fragment replace flashing old fragment
body: <p>I am replacing fragments into framelayout.But when I am replacing,old fragment is showing for a second then it is replacing.How can I prevent from flashing old fragment ? I am using this code:</p>
  
  <pre><code>FragmentManager fragmentManager=getSupportFragmentManager();
  FragmentTransaction fragmentTransaction=fragmentManager.beginTransaction();
  SettingsFragment conv=new SettingsFragment();
  SettingsFragment.newInstance(LOGGED_USERNAME);
  fragmentTransaction.replace(R.id.container,conv);
  fragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
  fragmentTransaction.addToBackStack(null);
  fragmentTransaction.commit();
  </code></pre>