Re: [android-developers] Overlay to make parts of image clickable

2010-12-05 Thread TreKing
On Sun, Dec 5, 2010 at 7:43 AM, bagelboy wrote: > Option 2 can be scaled easier however I'm not sure how to go about coding > it. > Idea: derive from ImageView a custom view that also includes a list of "hotspots", which are just hit detection areas (squares or circles for simplicity). When you

[android-developers] Overlay to make parts of image clickable

2010-12-05 Thread bagelboy
I have an image and I want to make parts of it clickable. From my research I can see 2 ways to do this: 1) I could chop the image into pieces and put them into a relative layout 2) I could create a matrix of points that describe the clickable areas and use onTouch events to track clicks Option 1 h