开发者

How to get home wallpaper offset?

开发者 https://www.devze.com 2023-02-28 22:52 出处:网络
I get wallpaper by BitmapDrawable drawable = (BitmapDrawable) getWallpaper(); But I need know now home wallpaper 开发者_StackOverflowoffset.

I get wallpaper by BitmapDrawable drawable = (BitmapDrawable) getWallpaper(); But I need know now home wallpaper 开发者_StackOverflowoffset. How can I do? thanks


If you add this to your Manifest for your activity you'll no longer get the scrunched wallpaper which I'm guessing you want to avoid.

<activity android:theme="@android:style/Theme.Wallpaper">

You don't need anything in your java code. Make you you don't set you layout background in your xml or set it to @null.


No way as far as I can tell. But you can always explicitly set offsets, so it does not really matter to not able to get offsets.

0

精彩评论

暂无评论...
验证码 换一张
取 消