Hi! I am developing Live Wallpaper for Android and stumbled upon scrolling wallpaper issue. We have onOffsetsChanged(..) function with xPixelOffset argument. Question is, what is the maximum value of xPixelOffset value and is it documented somewhere? Many people considered it to be (screen width * 2) and successfully used it. I myself get same result (-480 with screen width = 240). But is it the same for every device and will it be the same? I just couldn't find official documentation on this and i can't understand the logic behind this. Phone has X home screens and screen width = W. So why can't maximum offset be say, X*W instead of 2*W? And another question is, doesn't it mean that total width equals 3 width? Considering that real drawing area starts with 0 and ends at W and maximum offset is 2*W, last screen ends with point of X = (W + 2*W) = 3W. I just can't work with 2*W value now because i don't know yet whether it's a requirement for maximum offset on every device or is it just some of them. Thank you and sorry for my English.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en