is there a way I can show an image in my app, and detect when a certain part of it has been clicked; like you can do in HTML with an image map – defining areas of the image in co-ordinates?
Thank you in advance for your help.
is there a way I can show an image in my app, and detect
Share
Most (all?) of the objects we use on the UI inherit the
Viewclass, which means that they inherit theonTouchEventmethod of theViewclass.Decide which subclass is appropriate for you and then utilize the
onTouchEventmethod to trigger what ever code you need based on the coordinate output fromonTouchEvent.