3

I would like to ask about fade and slide effect in live wallpaper. How can I make fade in/ fade out or slide in/ slide out effect in live wallpaper when change between two images. If someone knows, please help me!

Thanks for reading!

Donato Szilagyi
  • 4,279
  • 4
  • 36
  • 53
kikura
  • 185
  • 2
  • 11

1 Answers1

3

With live wallpaper, you must handle these effects manually. Fade in/fade out could be achieved by drawing two bitmaps into the same canvas and varying 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 the cube example in the SDK for a simple implementation.

George Freeman
  • 2,260
  • 1
  • 15
  • 22
  • Thanks so much ! I will try as you comment – kikura Jun 18 '11 at 03:29
  • @George Freeman: Can you please elaborate more on achieving the fade in/fade out effect? Some sample code would be really awesome. – sri Feb 06 '16 at 13:33