Touch on image but ignore transparent area

You must Login before you can answer or comment on any questions.

I have several png images which are touchable. Is there any way to ignore touches on the transparent area? I have to put these images very close together and sometimes when I think i touch one image, I'm also touching the other image because it's rectangular and also have a hit area where i touched.

A magic parameter like .IgnoreTransparent = true would be great :) Some way of defining an area that is not rectangular would also work, like a mask.

1 Answer

i didnt see any facility provided for this and all the view works with height and width in their rectangular shape.U can only set their border radius.But u must refer to the new component provided by the titanium Ti.UI.MaskedImage.May be this can be helpful to you.

Your Answer

Think you can help? Login to answer this question!