android - Cancel ALL Animation on SingleInstance -
i wondering if @ possible cancel animation when starting singleinstance activity, using
@override public void onstop() { super.onstop(); overridependingtransition(0, 0); } @override public void onresume() { super.onresume(); overridependingtransition(0, 0); } for when finish called ,
intent.addflags(intent.flag_activity_no_animation); to activate it... theres still black screen ( short loading one). trying creating costume theme , didnt cancel it.
i kinda gave hope... know fragments solve it. there way without?
have tried calling overridependingtransition after calling startactivity(...)
you can disable animations via themes
developer should create style,
<style name="noanimtheme" parent="android:theme"> <item name="android:windowanimationstyle">@null</item> </style> then in manifest set theme activity or whole application.
<activity android:name=".ui.articlesactivity" android:theme="@style/noanimtheme"> </activity> you can specify style specify custom entry , exit animations, can make http://developer.android.com/reference/android/r.attr.html#windowenteranimation
Comments
Post a Comment