onOffsetsChanged: move Bitmap
i want my Bitmap that has the height of the screen and has a bigger width than the screen to be moved a little bit to the right or left if the user changes the desktop so he can see the entire image. Here is my code that just works partially: int x = -1*(int)((xOffset*bmp.getWidth())); canvas.drawBitmap(bmp, x, 0, null); thank you! George Freeman You get exact pixel values via the variables xPixels and yPixels in onOffsetsChanged(). See my answer here: android live wallpaper rescaling For example, in onOffsetsChanged(), you can set a private class variable mPixels = xPixels; Then, in your draw