标签:com class blog div code java log tab ble line table
1
2
3
4
5
6 |
public boolean dispatchTouchEvent(MotionEvent event) { if
(mOnTouchListener != null
&& mOnTouchListener.onTouch( this , event)) { return
true ; } return
onTouchEvent(event); } |
从上面代码可以看出,onTouch是每次都会被调用的,不管返回什么值,除非onTouchEvent返回了false. 可以看出onTouch是一个Listener,只能监听touch event,并阻止调用onTouchEvent(决定onclick和onLongClick)。
onTouch 和onTouchEvent区别,布布扣,bubuko.com
标签:com class blog div code java log tab ble line table
原文地址:http://www.cnblogs.com/zyfa/p/3695334.html