如何创建一个 Android 应用程序来循环浏览主屏幕上的背景图像?
我需要一点帮助,我希望有人能为我指明正确的方向。我想做一些我认为很简单的事情。
请记住,我是 Android 开发新手,因此这个答案对某些人来说可能看起来很清晰明了。
我想创建一个图像幻灯片,人们可以从应用商店下载。图像应每隔几秒更改一次,并且图像将安装在主屏幕上。我知道如何创建动画,并且知道如何创建一个显示几秒钟后更改的图像的应用程序。 但是,我不知道如何设置它才能显示在主页上!
我现在拥有的是一个应用程序,您必须单击其图标才能启动它。如何修改我的应用程序,以便用户可以安装它并在主屏幕的背景中显示幻灯片?
我查遍了所有内容,找到了动态壁纸的示例,但我的图像都是静态的。如果有人能给我指出正确的方向或提供我可以阅读的教程的位置,我将非常感激。
太感谢了!
I need a little bit of help and I'm hoping that someone can point me in the right direction. I want to do something that I thought would be simple.
Keep in mind that I'm new to Android development so this answer may seem clear and apparent to some.
I want to create a slideshow of my images that people can download from the app store. The images should change every few seconds and the images will be installed on the home screen. I know how to create animations and I know how to create an application that displays images that change after a few seconds. However, I do not know how to set this up so that it can be displayed on the home page!
What I have right now is an app whose icon you have to click on to launch it. How can I modify my app so that the user could install it and have the slideshow display in the background of the home screen?
I have looked all over and I find examples of Live Wallpapers, but my images are all static. I would REALLY appreciate it if someone could point me in the right direction or offer the location of a tutorial I can read through.
Thank you so much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想要动态壁纸:请参阅 http://www.codeproject.com/KB/android/ AndroidLiveWallpaper.aspx 获取指南。
You want a live wallpaper: see http://www.codeproject.com/KB/android/AndroidLiveWallpaper.aspx for a guide.