How to get home wallpaper offset?
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.
精彩评论