Detecting touch inside a irregular shape in ImageView
问题 I have an ImageView which has a transparent drawable with a circle at the center like (http://wallpaperswide.com/circle_outline-wallpapers.html). Just that the circle is red, and the surrounding are not coloured but are transparent, it is a .png image. So now I will implement Canvas.ondraw() , and when while tracing the user goes outside the circle, the drawing should restart. The doubt is: 1. How do I detect the boundaries of this image without hardcoding. 2. How do I detect that the user