Skip to content Skip to sidebar Skip to footer

Cancel All Animation On Singleinstance

I am wondering if its at all possible to cancel ALL animation when starting an singleInstance activity, i am already using @Override public void onStop() { super.onStop();

Solution 1:

Have you tried calling overridePendingTransition after calling startActivity(...)

You can also disable animations via themes

Developer should create a style,

<stylename="noAnimTheme"parent="android:Theme"><itemname="android:windowAnimationStyle">@null</item></style>

then in manifest set it as theme for activity or whole application.

<activityandroid:name=".ui.ArticlesActivity"android:theme="@style/noAnimTheme"></activity>

You can also specify a style to specify custom entry and exit animations, so you can make it do what you like as well http://developer.android.com/reference/android/R.attr.html#windowEnterAnimation

Post a Comment for "Cancel All Animation On Singleinstance"