简体   繁体   中英

Android: Smooth fade animation

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 fading 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM