Created
April 13, 2016 05:12
-
-
Save MrThiago/c7e613602fe0dd1861a30cba38d520d8 to your computer and use it in GitHub Desktop.
FragmentTransaction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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