I am using custom RadioButton, where i need to make clickable only on the image visible area.
As you can see in the image below , where I need to make clickable only on the image portion ie White and Green portion only, the black area will remain transparent and non clickable.

Thanks ,
Any help will really be appreciated.
I think the easiest way to detect whether ‘visible’ content of the image was clicked, is to hook up an OnTouchListener, get the touch coordinates and subsequently get the color for those coordinates using
Bitmap.getPixel(int x, int y). Since this will return an ARBG color, you should have little problems with images using an alpha channel. Anything that is ‘transparent’ (or black in this case) will be invalid, everything else will mean the actual content was tapped.