我在RecyclerView
的{{1}}中有CoordinatorLayout
,在某些情况下fragment
出现问题,当我重新加载此RecyclerView
或致电时fragment
,notifyDataSetChanged()
自动向上滚动一点(约1厘米)!因此,滚动RecyclerView
doe不起作用!
这是在Android 4.2.2 。
我用Google搜索,无法找到任何相关内容!
答案 0 :(得分:2)
Deepak Rathore回答对我有用。
将android:descendantFocusability="blocksDescendants"
添加到coordiante布局修复了我的问题。