Skip to content

Instantly share code, notes, and snippets.

@truongngoclinh
Last active September 7, 2016 07:29
Show Gist options
  • Save truongngoclinh/171abf3ac0c31a363b29 to your computer and use it in GitHub Desktop.
Save truongngoclinh/171abf3ac0c31a363b29 to your computer and use it in GitHub Desktop.
Fragment transaction animation when replace, pop backstack
// put animation on anim folder
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
transaction.setCustomAnimations(R.anim.enter_to_left, R.anim.exit_left, R.anim.enter_to_right, R.anim.exit_right);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment