Sto utilizzando l'esempio Android, FragmentTabs.Fragment Schermata della scheda di attività fisica Blackout
Dire, ci sono 4 schede (A, B, C, D). Sostituisco il frammento scheda (A) con un altro (E), utilizzando questo codice
FragmentTransaction transaction = getFragmentManager()
.beginTransaction();
transaction.replace(R.id.realtabcontent, newFragment);
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
transaction.addToBackStack(null);
// Commit the transaction
transaction.commit();
In un'altra scheda C, quando si preme di nuovo il tasto schermata della scheda (A) diventano neri.
[Tabs Android con Frammenti] (http://android.codeandmagic.org/2011/07/android -tabs-with-fragments /) e anche vedere questo sito sviluppatore [Frammenti] (http://developer.android.com/guide/topics/fundamentals/fragments.html) Spero che aiuti. –