android fragments in different tabs
<p>I'm building an app that the interface is based on this <a href="http://code.google.com/p/android-playground/" rel="nofollow">http://code.google.com/p/android-playground/</a>, and I need to have a fragment inside of each tab (that are fragments). The tabs are all inflated from the same xml, and in that xml I have a fragment tag.</p>

<p>The problem is that when the activity is created, as the id of each fragment in the tabs are equal, the contents that should go to the second tab, go in the first.</p>

<p>I'm using this code to replace the fragment in the tab</p>

<pre><code>FragmentTransaction ft = x.getSupportFragmentManager().beginTransaction();
ft.replace(R.id.details, fragment);
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
ft.commit();
</code></pre>

<p>I don't know if is possible to correct this.</p>
