View.OnTouchListener
public static interface View.OnTouchListener
android.view.View.OnTouchListener |
Known Indirect Subclasses
|
将触摸事件分派到此视图时调用回调的接口定义。 触摸事件发送给视图之前,将调用回调。
Summary
Public methods
onTouch
boolean onTouch (View v,
MotionEvent event)
当触摸事件分派到视图时调用。 这使听众有机会在目标视图之前做出回应。
Parameters |
v |
View : The view the touch event has been dispatched to. |
event |
MotionEvent : The MotionEvent object containing full information about the event. |
Returns |
boolean |
True if the listener has consumed the event, false otherwise. |