Android Custom View to Activity communication

Posted by Blumer on Stack Overflow See other posts from Stack Overflow or by Blumer
Published on 2010-04-09T06:47:46Z Indexed on 2010/04/09 6:53 UTC
Read the original article Hit count: 413

I have a custom control/view that observes the direction of a gesture within its bounds. I would like to send a different message back to the Activity hosting the View depending on the direction of the gesture. I'm having a hard time determine what the right way to do this is. I would think I could raise a custom event in the control and then stick a listener on the control in the activity, but I cannot find any information on custom events in Android. Any help would be appreciated.

Thanks.

© Stack Overflow or respective owner

Related posts about android

Related posts about events