NestedScrollView RecyclerView fling 失效
通過NestedScrollView RecyclerView嵌套使用時,fling會失效。
解決方法有多種,下面貼出一種,作爲筆記。
將fling事件交給NestedScrollView處理,在RecyclerView佈局文件中添加
android:nestedScrollingEnabled="false"
或者代碼中添加
mRecyclerView.setNestedScrollingEnabled(false);
更多方法原文