

if i only have name or id of image , can i use OnTouchListener to know image user clicked?jonbonazza wrote:Use an OnTouchListener and compared the returned point of touch to the images' locations.


jonbonazza wrote:you can create an ImageView to define the image useing its ID and then use its accessor methods to get the x coordinate, y coordinate, width, and height to define the bounds of the image and compare it to the point of click.

Return to Android 2D/3D Graphics - OpenGL Problems
Users browsing this forum: No registered users and 4 guests