开发者

Android live wallpaper slide animation

At the moment I have my live wallpaper which takes an image chosen by the user, from their SD card and sets it as the background. Its coming along nicely, however I notice that many live wallpapers change the view of the background when the user slides to switch开发者_运维问答 their homescreens from right to left.

For example, the middle homescreen displays the middle part of the image, when the user slides their finger to the right to get to their next homescreen on the left, the background image moves with it showing part of the image further to the left.

I've trying searching how to do this, but to no avail, does anyone have any info on what's used to recreate this image sliding animation?

Thanks,

William Stewart.


If you want your wallpaper to scroll, you will need to monitor onOffsetsChanged() events.

Take a look at this answer: android live wallpaper rescaling
Let me know if you have any further questions.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜