I want to label different images and all the labels must be clickable.Is their a way to add particular hotspots in imageview that respond differently? Please guide me in right direction.
Asked
Active
Viewed 21 times
-1
-
i recently came across constraint layout which allows you to set position of children based on percentage. or you can use on touch listener to get x and y and make your logic accordingly – Mohammed Atif Oct 03 '16 at 18:47
-
your bitmap could be link with a JSON some things like this : { "content": "Lorem ", "x": 1000, "y": 74, "arrowOrientation": 3, "arrowLength": 100 } – JCDecary Oct 03 '16 at 18:48
1 Answers
0
Just create your own view which draws a bitmap and some lines with texts. if clicked get the position. resolve which text has been clicked.
https://developer.android.com/training/custom-views/index.html

XxGoliathusxX
- 922
- 13
- 34