Created
May 25, 2012 13:07
-
-
Save granoeste/2788034 to your computer and use it in GitHub Desktop.
[Android] no animations when Activity started.
This file contains 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
Intent intent = new Intent(this,MyActivity.class); | |
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); | |
startActivity(intent); |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="MyTheme" parent="android:Theme"> | |
<item name="android:windowAnimationStyle">@android:style/Animation</item> | |
</style> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment