With a regular activity, you can use
// Display the fragment as the main content.
getFragmentManager().beginTransaction()
.replace(android.R.id.content, new SettingsFragment())
.commit();
to replace your main content with another fragment. With the default swipable tabs activity in Eclipse, this just overlays your new fragment on top of the other fragments. Can I get the id of the entire ViewPager somehow and replace that instead of android.R.id.content? I want to replace all of the tabs with my new fragment.