Skip to content

Instantly share code, notes, and snippets.

@FireZenk
Created December 10, 2017 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FireZenk/9113f4f20bc06b18294e4dc7291a32fc to your computer and use it in GitHub Desktop.
Save FireZenk/9113f4f20bc06b18294e4dc7291a32fc to your computer and use it in GitHub Desktop.
MyFragment fragment = MyFragment.newInstance(index);
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.replace(R.id.parent, fragment);
ft.commit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment