Sub LWM_OffsetChanged (Engine As LWEngine)
If Flyer.IsInitialized Then
Engine.Rect.Left = -Engine.CurrentOffsetX
Engine.Rect.Top = -Engine.CurrentOffsetY
Engine.Rect.Right = -Engine.CurrentOffsetX + Engine.FullWallpaperWidth
Engine.Rect.Bottom = -Engine.CurrentOffsetY + Engine.FullWallpaperHeight
Engine.Canvas.DrawBitmap(Flyer, Null, Engine.Rect)
Else
Engine.Canvas.DrawColor(Colors.Black)
Engine.Canvas.DrawText(AResMap.Get("other_placeholder_on_screen"), 120dip, 120dip, Typeface.DEFAULT_BOLD, 30, Colors.White, "LEFT")
End If
Engine.RefreshAll
End Sub
pScreenHeight=GetDeviceLayoutValues.Height
pScreenWidth=GetDeviceLayoutValues.Width
original.Width : 360
origRatio : 0.5625
TargetX :1050
targetRatio :0.8203125
scale : 2
actualImageWidth : 720
//Edit: I don't have stripes on my backgroud, is only on your wallpaper. I have just a problem with the landscape...
how that possible you have find a solution for the black strip ?
do you have test with a 320 x 480 mdpi emulator ?
i have always the black strip
test^^
WallpaperManager wpm = (WallpaperManager) getSystemService(WALLPAPER_SERVICE);
WallpaperInfo info = wpm.getWallpaperInfo();
if (info != null && info.getComponent().equals(new ComponentName(this, getClass()))) {
Log.d(TAG, "We're already running");
// Still might be a preview, but the user is already running your LWP.
} else {
Log.d(TAG, "We're not running, this should be a preview");
// Should definitely be a preview.
}
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?