draw arrows from keys to values based on user's touch

Quickly share your Android Code Snippets here...

draw arrows from keys to values based on user's touch

Postby anduser7 » Wed Jun 22, 2011 11:52 am

Hi,

I am looking to draw arrows from keys(buttons on left hand side of screen) to values(buttons on right hand side of screen) based on users touch. If the user doesn't draw up to the one of the values buttons, the partial drawn arrow should be erased/removed.

I tried catching the touchevent and caching x,y co-ordinates on mouse_down and mouse_up events but in the emulator I am not getting the mouse up event. (I tried pressing the mouse and going up to the key and releasing the key, not sure if this is the right way to simulate user's touch).

Any help is greatly appreciated.

Thanks
anduser7
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Jun 01, 2011 7:07 pm

Top

Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 3 guests