View的事件分发三个主要方法简单介绍!
public boolean disoatchTouchEvent(MotionEvent event);
进行事件分发
public boolean onTouchEvent(MotionEvent event);
进行事件处理
public boolean onInterceptTouchEvent(MotionEvent event);
进行事件拦截
ViewGroup才有的方法,普通View下没有子View就没有必要再拦截了。
View的事件分发三个主要方法简单介绍!
public boolean disoatchTouchEvent(MotionEvent event);
进行事件分发
public boolean onTouchEvent(MotionEvent event);
进行事件处理
public boolean onInterceptTouchEvent(MotionEvent event);
进行事件拦截
ViewGroup才有的方法,普通View下没有子View就没有必要再拦截了。