Skip to content

Instantly share code, notes, and snippets.

@MrThiago
Created April 13, 2016 05:12
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 MrThiago/c7e613602fe0dd1861a30cba38d520d8 to your computer and use it in GitHub Desktop.
Save MrThiago/c7e613602fe0dd1861a30cba38d520d8 to your computer and use it in GitHub Desktop.
FragmentTransaction
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
Fragment fragment;
transaction.setCustomAnimations(anim.slide_in_left, anim.slide_out_right); //built in
//transaction.setCustomAnimations(R.anim.slide_in_bottom, R.anim.slide_out_up); //Custom in RES folder
transaction.replace(R.id.mainFrame, fragment);
transaction.commit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment