Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在设备启动时以编程方式设置一个 LiveWallpaper。现在我们需要切换到使用图像作为单个应用程序的壁纸。一旦这个应用程序关闭,liveWallpaper 应该会回来。或者我们可以将背景图像设为静态,以便当活动发生变化时,背景图像静态的效果看起来像壁纸?
在以编程方式设置壁纸之前,使用 WallpaperManager 获取当前壁纸。 离开应用程序时,在 onDestroy 方法中设置保存的壁纸。
在以编程方式设置壁纸之前,使用 WallpaperManager 获取当前壁纸。
离开应用程序时,在 onDestroy 方法中设置保存的壁纸。
它会起作用的。