通常情况下RecycleView和CoordinatorLayout在配置了
app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed"和
app:layout_behavior="@string/appbar_scrolling_view_behavior"可以进行联动
但是当RecycleView配置了setNestedScrollingEnabled=false属性后,CoordinatorLayout无法计算当前RecycleView的滑动位置导致两者滑动冲突,造成各自滑动的现象,所以切记在嵌套时注意该属性的操作,此属性只用来处理RecycleView被NestedScrollView嵌套时的冲突问题
异常处理:去掉setNestedScrollingEnabled属性或者将该属性设置成true