I am writing live wallpapers for Android. To check my base code, I drew a rectangle in the upper left corner of the screen:
canvas.drawRect(0f,0f,50f,50f,paint);
Half of the rectangle was under the line at the top of the main screen. 
I tried to account for pixel offsets using:
public void onOffsetsChanged(float xOffset, float yOffset, float xOffsetStep, float yOffsetStep, int xPixelOffset, int yPixelOffset) ... canvas.drawRect(0f+xPixelOffset,0f+yPixelOffset,50f+xPixelOffset,50f+yPixelOffset ,paint);
But the rectangle is still drawn under the panel. How to find where the bar ends so I can draw below it?
Greetings
Pete
android offset wallpaper draw live-wallpaper
Peter
source share