Android background effect effect

I would like to ask about the effect of fading and slide effect in live wallpaper. How can I fade in / out or insert a slide effect in live wallpapers when changing between two images. If anyone knows, please help me!

Thanks for reading!

+3
source share
1 answer

With live wallpapers, you must handle these effects manually. Fading / fading can be achieved by drawing two bitmaps in one canvas and changing the alpha of the second bitmap. I'm not sure what you mean by “slide” ... live wallpapers usually use an effect called parallax scrolling, which is facilitated by the onOffsetsChanged () callback ... see an example cube in the SDK for a simple implementation.

+3
source

All Articles