Saturday 15 March 2014

touch events to custom shapes in android -


I'm new to Android programming; I am trying to create a simple program where I can handle touch events on various shapes. I've created a size by expanding the view category and I want to add touch impressions to those sizes like "touched rectangle, touched touches, round touches" or their tags. But I do not know how I can do this ... thanks! Advance!

Override OnTouchEvent in your viewable class This will call it and the location touched on the screen, and touch Will call in an event with the type (touch, touch, touch release, etc.). When you look up, take coordinates and see that it is inside the shape.

No comments:

Post a Comment