摘要:
继承ViewGoup,重写onInterceptTouchEvent截拦触摸事件并按条件分发给子View。package com.example.viewdemo;import android.content.Context;import android.util.AttributeSet;import android.view.MotionEvent;import android.view.VelocityTracker;import android.view.View;import android.view.ViewGroup;import android.widget.Scroller; 阅读全文