Skip to content Skip to sidebar Skip to footer

Why Does The Value Of X Does Not Go All The Way To The Edge Of The Layout

palette2 drawable which is used as a background: esquare drawable (resized using @dimen and used as a thumb): XML:

Solution 1:

Can you go to the left edge of the image as you expect? What about top and bottom?

Have you tried any other Android device?

Note that your finger is much bigger than pixels, so the touch screen needs to round it. In general, it should report the center of your finger, but depending on the quality, it may not be doing a good job at it. In particular, it may not be able to get any information about your finger outside of the active area (and then not report any touch if too much of your finger is outside of the screen).

You could use an app like Touch Test to see how your device behaves. And first check that you can actually reach the edge with this. If you don't then your problem is not in your code but with the device.

Post a Comment for "Why Does The Value Of X Does Not Go All The Way To The Edge Of The Layout"