事件分发日志

 MyRelativeLayout_dispatchTouchEvent_ACTION_DOWN
 MyRelativeLayout_onInterceptTouchEvent_ACTION_DOWN
 MyTextView_dispatchTouchEvent_ACTION_DOWN
 MyTextView_onTouchEvent_ACTION_DOWN
 MyRelativeLayout_onTouchEvent_ACTION_DOWN

修改view的diapatcherTouchEvent的Down返回值 true

MyRelativeLayout_dispatchTouchEvent_ACTION_DOWN
MyRelativeLayout_onInterceptTouchEvent_ACTION_DOWN
MyTextView_dispatchTouchEvent_ACTION_DOWN

MyRelativeLayout_dispatchTouchEvent_ACTION_MOVE
MyRelativeLayout_onInterceptTouchEvent_ACTION_MOVE
MyTextView_dispatchTouchEvent_ACTION_MOVE
MyTextView_onTouchEvent_ACTION_MOVE

MyRelativeLayout_dispatchTouchEvent_ACTION_UP
MyRelativeLayout_onInterceptTouchEvent_ACTION_UP
MyTextView_dispatchTouchEvent_ACTION_UP
MyTextView_onTouchEvent_ACTION_UP

viewGroup的 onInterceptTouchEvent返回值为true,

子view的dispatcherTouchEvent的Down返回值为true

MyRelativeLayout_dispatchTouchEvent_ACTION_DOWN
MyRelativeLayout_onInterceptTouchEvent_ACTION_DOWN
MyRelativeLayout_onTouchEvent_ACTION_DOWN

viewGroup的 onInterceptTouchEvent返回值为true,

viewGroup的 onTouchEvent的OnDown返回值为true,

子view的dispatcherTouchEvent的Down返回值为true

MyRelativeLayout_dispatchTouchEvent_ACTION_DOWN
MyRelativeLayout_onInterceptTouchEvent_ACTION_DOWN
MyRelativeLayout_onTouchEvent_ACTION_DOWN
MyRelativeLayout_dispatchTouchEvent_ACTION_MOVE
MyRelativeLayout_onTouchEvent_ACTION_MOVE
MyRelativeLayout_dispatchTouchEvent_ACTION_UP
MyRelativeLayout_onTouchEvent_ACTION_UP

 

ViewGroup的 onInterceptTouchEvent返回值为true,

ViewGroup的onInterceptTouchEvent的Down返回值为false

子view的dispatcherTouchEvent的Down返回值为true

 

MyRelativeLayout_dispatchTouchEvent_ACTION_DOWN
MyRelativeLayout_onInterceptTouchEvent_ACTION_DOWN
MyTextView_dispatchTouchEvent_ACTION_DOWN

MyRelativeLayout_dispatchTouchEvent_ACTION_MOVE
MyRelativeLayout_onInterceptTouchEvent_ACTION_MOVE

MyRelativeLayout_dispatchTouchEvent_ACTION_MOVE
MyRelativeLayout_onTouchEvent_ACTION_MOVE

MyRelativeLayout_dispatchTouchEvent_ACTION_UP
MyRelativeLayout_onTouchEvent_ACTION_UP

你可能感兴趣的:(安卓开发,java)