有两个方式可以实现 一:调用AppBarLayout,设置间距 val behavior = (appbar_layout.getLayoutParams() as CoordinatorLayout.LayoutParams).getBehavior() if (behavior is AppBarLayout.Behavior) { var appBarLayoutBehavior = behavior var topAndBottomOffset = appBarLayoutBehavio
onInterceptTouchEvent可在onTouchEvent()前拦截触摸事件, ViewConfiguration得到触摸的属性如速度,距离等, TouchDelegate控制view展开 Managing Touch Events in a ViewGroup Handling touch events in a ViewGroup takes special care, because it's common for a ViewGroup to have children th