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.
就像在 android 中有一个 WallpaperManager 类。android中是否有任何类可以获取锁屏drawable?这样我就可以在我的应用程序的屏幕锁定中将该锁定屏幕可绘制设置为背景图像。
从 API 24 开始,WallpaperManager现在有两个新方法:getWallpaperFile和getWallpaperId. 您可以传入WallpaperManager.FLAG_SYSTEM系统壁纸或WallpaperManager.FLAG_LOCK锁屏壁纸。但同样,这仅在 API 24 中受支持。
WallpaperManager
getWallpaperFile
getWallpaperId
WallpaperManager.FLAG_SYSTEM
WallpaperManager.FLAG_LOCK
[编辑]
setBitmap也可以接受新标志,因此您可以选择要设置的壁纸。
setBitmap