OnTouchListener can give me and X and Y value I wonder though are
these screen relative or View relative by this I mean is 0,0 top left
of the screen or the view?
On May 6, 9:11 pm, Loki117 <thomas.sheppar...@gmail.com> wrote:
> Hey Guys,
>
> I am looking for some guidance around the best method of carrying out
> a "hit test" style solution.
>
> Lets say imageView that's a square in the centre of the the screen the
> square is 10x10. I want to segments that square into 4 equal segments.
> Now when the user hits the top left segment I want to show a dialog of
> "top left" the same for bottom left top right and bottom right.
>
> What is the best way of translating this screen point "hit" to an
> action? I see on click does not have a point. I am looking for
> something like the onTap method for maps overlay I guess. This will
> then progress to detecting the same for triangles but I guess this
> will then just become some maths.
>
> Any help appreciated.
>
> Tom
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment