I want to create a clickable area on imageview using this data
"X1": "213",
"Y1": "174",
"X2": "339",
"Y2": "269",
and also I want to associate a Action with this clickable area like go to some Activity when tap on it. I don't want to use solution given in this link. clickable area of image
Because I have multiple Imageviews and coordinates can be different every time. These ordinates are coming from server.
please suggest the best way to handle this problem.