开发者

How can I use a Java animation to transition between Activities

In my And开发者_如何学Croid app, I've written a custom Animation subclass to handle some of my view transitions. I want to use the same animation for the transition between Activities in my app. How can I use my Animation subclass for the Activity transition?

I'm aware of calling overridePendingTransition(), but that won't work in this case:

  1. My animations are not in XML resources, and
  2. It's not possible to represent them with just the supported tags in AnimationUtils.


I appears that it is not currently possible: Custom Animation Object for Transition in Android?


You may try to combine two or more activities into one and then use ViewFlipper, where you can set fancy animations on flipped views.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜