Obviously, window and activity itself know differently from names, but the difference between Windowanimation and activityanimation in project development must be understood.
The main differences are as follows
1.windowAnimation includes windowenteranimation and windowexitanimation; Activityanimation contains android: Activityopenenteranimation,android:activityopenexitanimation,android: Activitycloseenteranimation and android:activitycloseexitanimation
2. The Windowanimation control over the project is greater than the control of the activity, that is, if both windowanimation and Activityanimation are set during the activity transition, Possible (because of this very much) will only execute windowanimation
3. The definition of windowanimation is simple, only need to inherit the animation style in the Style.xml file
<style name= "Animation" parent= "@android: Style/animation" > <!--form into animation--<item name= "Androi D:windowenteranimation "> @anim/slide_left_enter</item> <!--form Exit Animation--<item name=" Android:wi Ndowexitanimation "> @anim/slide_right_exit</item> </style>
For activity, you need to inherit animation activity Style
When we start A2 from A1, A1 disappears from the screen, the animation is called android:activityopenexitanimation when we start A1 from A2, A2 appears on the screen, this animation is called Android:activityopenent Eranimation when we exit from A2 back to A1, A2 disappears from the screen, this is called android:activitycloseexitanimation when we exit from A2 back to A1, A1 appears on the screen, this is called android:act Ivitycloseenteranimation
From the definition of the above 2 animation, it is obvious that activityanimation is more complex, but the transition effect of this complex is very good, can control the animation of 2 activity at the same time, Unlike Windowanimation, you can only control the form animation of the next activity.
5. In development, form animations can also use Activity. Overridependingtransition can be set or defined in a theme, but activity can only be used in themes
<applicationandroid:name= "Test.view.weitop.BaseApplication" android:allowbackup= "false" Android: Hardwareaccelerated= "false" android:icon= "@drawable/app_logo" android:label= "@string/app_name" android:largeheap= "True" Android:theme= "@style/theme.app" ></application>
6. For the comparison of the pursuit of aesthetic aesthetics of animation, the use of activityanimation is much better, so for general development use windowanimation can, but for the pursuit of user experience, then directly use Activity Animation Bar
Here we share a research blog about activity animation: http://www.oschina.net/question/97118_34343
The difference between Android transition animations Windowanimation and activityanimation