80,471
社区成员




@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
mHandler.removeCallbacksAndMessages(null);
mHandler.sendEmptyMessageDelayed(0, 10_000);
return super.dispatchTouchEvent(ev);
}
handler里面的逻辑就是跳转新界面/**
* Used by custom windows, such as Dialog, to pass the touch screen event
* further down the view hierarchy. Application developers should
* not need to implement or call this.
*
*/
public abstract boolean superDispatchTouchEvent(MotionEvent event);
/**
* Used by custom windows, such as Dialog, to pass the trackball event
* further down the view hierarchy. Application developers should
* not need to implement or call this.
*
*/
public abstract boolean superDispatchTrackballEvent(MotionEvent event);
/**
* Used by custom windows, such as Dialog, to pass the generic motion event
* further down the view hierarchy. Application developers should
* not need to implement or call this.
*
*/
public abstract boolean superDispatchGenericMotionEvent(MotionEvent event);