I have enabled Activity transitions on the emulator thru the
SpareParts app. However, I would like to override the system default
transitions for a specific activity in my app. I find that in 1.5,
animation attributes can be set in the application theme.
I have defined a custom animation theme as:
<style name="MyTheme" parent="Theme">
<item name="android:windowAnimationStyle">@style/
MyAnimation.Activity</item>
</style>
<style name="MyAnimation.Activity"
parent="android:Animation.Activity">
<item name="android:activityOpenEnterAnimation">@anim/my_anim1</
item>
<item name="android:activityOpenExitAnimation">@anim/my_anim2</
item>
<item name="android:activityCloseEnterAnimation">@anim/my_anim3</
item>
<item name="android:activityCloseExitAnimation">@anim/my_anim3</
item>
</style>
When I set the theme to "MyTheme" for my activity, it does not play
the enter/exit animations when the activity is launched or closed. The
interesting thing is that the activity transition gets turned off for
this activity. For all other activities, I see the default slide left/
right animation.
Any ideas would be helpful.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---