开发者

Android: Smooth fade animation

开发者 https://www.devze.com 2023-03-14 15:13 出处:网络
I\'m attempting to fade between two background images on my Droid, but the animation seems to get 5fps if not less. Is there any method I can use other than fa开发者_开发百科ding in\\out a couple imag

I'm attempting to fade between two background images on my Droid, but the animation seems to get 5fps if not less. Is there any method I can use other than fa开发者_开发百科ding in\out a couple image views that would be smoother?


You can set your background to be defined by a TransitionDrawable. Used it to develop a nice splash screen that fades in and didn't have any issues.


I'm not exactly sure what you want to do, but if you want to change from one screen to the other within the same app you should use the ViewFlipper.

View Flipper on Android Developer site

This will allow to smoothly change from one screen to the other (much like the iPhone way).

If it is about the actual Android background i can't help you. Sorry.

0

精彩评论

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