Wednesday, January 9, 2013

[android-developers] touch listener

I'm setting a touch listener on a custom View by calling this:

public void setOnTouchListener (View.OnTouchListener l)
Added in API level 1
Register a callback to be invoked when a touch event is sent to this view.
Parameters
l
the touch listener to attach to this view


Can anyone tell me if the listener gets called on the UI thread or not?  I need to know whether to call invalidate or postInvalidate?

--
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