I understand the imageview doesn't have a touch event, but this can be simulated by creating a transparent panel over it and getting the touch event for the panel instead.
That's fine for simply being able to detect a touch event "on" the imageview, but I need the X and Y coordinates from the touch as well, to use with the underlying imageview.
My problem is that even though the panel and the imageview have the same top,left,width, and height, (in dip units,) the X/Y coordinates reported by the panel touch event don't correspond to the specified width/height of the panel but instead, it seems, are relative to the entire screen's dimensions?
In Windows Visual Basic one could get image-relative x/y coordinates with the picturebox mouse_down event. Is there no simple way to accomplish this with a touch event in B4A? If not, please add my name to the wish list for an imageview touch event
That's fine for simply being able to detect a touch event "on" the imageview, but I need the X and Y coordinates from the touch as well, to use with the underlying imageview.
My problem is that even though the panel and the imageview have the same top,left,width, and height, (in dip units,) the X/Y coordinates reported by the panel touch event don't correspond to the specified width/height of the panel but instead, it seems, are relative to the entire screen's dimensions?
In Windows Visual Basic one could get image-relative x/y coordinates with the picturebox mouse_down event. Is there no simple way to accomplish this with a touch event in B4A? If not, please add my name to the wish list for an imageview touch event