【发布时间】:2019-04-26 02:56:42
【问题描述】:
当我尝试滚动 RecyclerView 的外部区域时,我有这样的结构它不起作用(滚动)
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<androidx.cardview.widget.CardView
</androidx.cardview.widget.CardView>
<androidx.recyclerview.widget.RecyclerView
/>
</androidx.constraintlayout.widget.ConstraintLayout>
对此有任何帮助!!!
【问题讨论】:
-
会尝试告诉你
标签: android android-recyclerview kotlin android-constraintlayout android-nestedscrollview