android - How to override the enter activity animation if it is stated by launcher -
i tried google search found solution intra-activity animation using overridependingtransition() method. however, there solution if have own animation when application started launcher?
thanks lot!
you can define animation custom theme. here need. assuming know how use theme, if not separate question. below delete line don't want define own animation , fall default android animation.
<!-- goes in theme --> <item name="android:windowanimationstyle">@style/myactivityanimations</item> <!-- standard animations full-screen window or activity. --> <style name="myactivityanimations" parent="@android:style/animation.activity"> <item name="activityopenenteranimation">@anim/activity_open_enter</item> <item name="activityopenexitanimation">@anim/activity_open_exit</item> <item name="activitycloseenteranimation">@anim/activity_close_enter</item> <item name="activitycloseexitanimation">@anim/activity_close_exit</item> <item name="taskopenenteranimation">@anim/task_open_enter</item> <item name="taskopenexitanimation">@anim/task_open_exit</item> <item name="taskcloseenteranimation">@anim/task_close_enter</item> <item name="taskcloseexitanimation">@anim/task_close_exit</item> <item name="tasktofrontenteranimation">@anim/task_open_enter</item> <item name="tasktofrontexitanimation">@anim/task_open_exit</item> <item name="tasktobackenteranimation">@anim/task_close_enter</item> <item name="tasktobackexitanimation">@anim/task_close_exit</item> <item name="wallpaperopenenteranimation">@anim/wallpaper_open_enter</item> <item name="wallpaperopenexitanimation">@anim/wallpaper_open_exit</item> <item name="wallpapercloseenteranimation">@anim/wallpaper_close_enter</item> <item name="wallpapercloseexitanimation">@anim/wallpaper_close_exit</item> <item name="wallpaperintraopenenteranimation">@anim/wallpaper_intra_open_enter</item> <item name="wallpaperintraopenexitanimation">@anim/wallpaper_intra_open_exit</item> <item name="wallpaperintracloseenteranimation">@anim/wallpaper_intra_close_enter</item> <item name="wallpaperintracloseexitanimation">@anim/wallpaper_intra_close_exit</item> </style>
Comments
Post a Comment