I am confused with FragmentTabHost to do fragment replacement. I have a few pages that have some views to click and then forward to another fragment, but after I replace that fragment and then click on other tabs, the fragments overlap together...
here is my switching function:
public void fragmentSwitch(FragmentActivity context, Fragment fragment, String fragmentTag){
FragmentManager fragmentManager = context.getSupportFragmentManager();
fragmentManager.beginTransaction()
//.setCustomAnimations(android.R.anim.slide_in_left, android.R.anim.slide_out_right)
.replace(android.R.id.tabcontent, fragment, fragmentTag)
//.addToBackStack(null)
.commit();
fragmentManager.executePendingTransactions();
}