3

是否可以以某种方式将用户的主屏幕壁纸设置为 Android 应用程序的背景?我认为这可能是一种非常有趣的方式,可以让您的应用看起来更像是手机的一部分。

4

1 回答 1

0

我无法对此进行测试,但您可以使用WindowManager,然后使用public static final int FLAG_SHOW_WALLPAPER.

来自 WindowManager 文档 Window flag: ask that the system wallpaper be shown behind your window. The window surface must be translucent to be able to actually see the wallpaper behind it; this flag just ensures that the wallpaper surface will be there if this window actually has translucent regions.

您可以将窗口区域设置为在此上方透明,这可能会解决您的问题。这是一个聪明的主意,我很想看看结果如何。

于 2013-09-17T06:54:17.177 回答