美文网首页
解决ScrollView嵌套recyclerview滑动和显示问

解决ScrollView嵌套recyclerview滑动和显示问

作者: polelice | 来源:发表于2018-01-17 10:20 被阅读0次

在recycleview外加一层相对布局,binding.rvPeihuoDetail.setNestedScrollingEnabled(false);

```

<RelativeLayout

android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:descendantFocusability="blocksDescendants">

    android:id="@+id/rv_peihuo_detail"

    android:layout_width="match_parent"

    android:layout_height="wrap_content"/>

</RelativeLayout>

```

相关文章

网友评论

      本文标题:解决ScrollView嵌套recyclerview滑动和显示问

      本文链接:https://www.haomeiwen.com/subject/juljmttx.html