创建在动态壁纸中从右向左移动的背景图像
我有一个背景图像,我想简单地从右向左滚动(循环)。这样做的最佳方法是什么?我需要使用外部库吗? android 中是否已经内置了某些方法来实现此目的?这一切都是在 doDraw() 方法中完成的吗?
最终我希望画布也能在其上绘制一个固定的位图。我认为如果我只使用 canvas.drawBitmap() 函数,这会很容易。
I have a background image that I would like to simply scroll (while looping) right to left. What is the best way to go about doing this? Will I need to use an external library? Are there certain methods built into android already to accomplish this? Is all this accomplished in the doDraw()
method?
Eventually I would like the canvas to also draw a stationary Bitmap ontop of that. I think that will be easy if I just use the canvas.drawBitmap() function.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
包括 X 偏移的简单示例
http://android10.org/index.php/articlesuserinterface/256-live -壁纸示例
和画布
Easy example including X offset
http://android10.org/index.php/articlesuserinterface/256-live-wallpaper-example
and canvas