Skip to content

Instantly share code, notes, and snippets.

@skayred
Created November 3, 2011 06:53
Show Gist options
  • Save skayred/1335946 to your computer and use it in GitHub Desktop.
Save skayred/1335946 to your computer and use it in GitHub Desktop.
FragmentTransaction ft = getActivity().getSupportFragmentManager().beginTransaction();
ft.addToBackStack(null);
ft.replace(R.id.details_frag, newFrag);
ft.addToBackStack(null);
ft.commit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment