Recycler view inside NestedScrollView causes scroll to start in the middle

后端 未结 11 1008
眼角桃花
眼角桃花 2020-12-12 10:07

I am getting a weird scrolling behavior when I add a RecyclerView inside a NestedScrollView.

What happens is that whenever the scrollview has more rows than can be s

11条回答
  •  伪装坚强ぢ
    2020-12-12 10:27

    Just add android:descendantFocusability="blocksDescendants" on the ViewGroup inside the NestedScrollView.

提交回复
热议问题