title: Android Fragment - move from one View to another?
body: <p>Can i first add a Fragment to a View, then "detach" it, and then "re-attach" it to another View?</p>
  
  <p>In code, i want to:</p>
  
  <pre><code>fragOne one = new fragOne();
  getSupportFragmentManager().beginTransaction()
          .add(R.id.left, one, "tag").commit();
  
  getSupportFragmentManager().beginTransaction()
          .detach(one).commit();      // or .remove(), or .addToBackStack(null).remove()
  
  getSupportFragmentManager().executePendingTransactions();
  
  getSupportFragmentManager().beginTransaction()
          .add(R.id.right, one).commit();
  </code></pre>
  
  <p>But it throws error:</p>
  
  <pre><code>04-05 13:28:03.492: E/AndroidRuntime(7195): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.trybackstack/com.example.trybackstack.MainActivity}: java.lang.IllegalStateException: Can't change container ID of fragment fragOne{40523130 #0 id=0x7f080000 tag}: was 2131230720 now 2131230721
  </code></pre>
  
  <p>Thanks for help!</p>