title: Replacing a fragment with another fragment of the same class
body: <p>I have a <code>fragment</code> (let's call it <strong>MyFragment</strong>) that inflates different layouts according to a parameter passed in the arguments.<br>
  All works well if <strong>MyFragment</strong> is started from a different fragment. But if <strong>MyFragment</strong> is active and I want to launch a new <strong>MyFragment</strong> with a different layout parameter, the <code>fragmentManager</code> does not create a new fragment at all.</p>
  
  <pre><code>data.setInt("Layout index",i);
  fragmentTab0 = (Fragment) new MyFragment();
  fragmentTab0.setArguments(data);
  fragmentTransaction.replace(R.id.fragmentContent, fragmentTab0, "MY");
  fragmentTransaction.addToBackStack(null);
  fragmentTransaction.commit();
  </code></pre>
  
  <p>How can I <strike>force</strike> convince the <code>fragmentTransaction</code> to launch the fragment again?</p>
  
  <p><strong>NOTE</strong>: The important point here is I need to inflate again a layout, which is different from the layout inflated before. The code looks like:</p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  
      switch( getArguments().getInt("Layout index") ) {
      case 1:
          rootView = inflater.inflate(R.layout.firstlayout, container, false);
          break;
      case 2:
          rootView = inflater.inflate(R.layout.secondlayout, container, false);
          break;
      case 3:
          rootView = inflater.inflate(R.layout.thirdlayout, container, false);
          break;
      default: break;
      }       
  </code></pre>