On Fri, Feb 17, 2012 at 6:46 AM, shihab shiha <shihabkp.andr...@gmail.com>wrote:

> i want to activate the onclick on the visible part of this image. the
> problem is if i click near to this image that means it takes as rectangle.


How big is this image going to be in practice? It might not be worth the
effort.


> i want to activate only that image potion itself. how can i do it without
> using canvas . pleas give a solution for this


Roughly: you could use the View's touch events to get the exact X / Y touch
coordinates, then use some fancy math to determine that the point is
contained within the geometric area represented by the image in question.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to