我有一排在另一个recyclerview中有一个recyclerview,就像这张图片
我需要内部 recyclerview 才能滚动它,我已经尝试过了(这是在 ConstrainLayout 内)
<androidx.core.widget.NestedScrollView
android:id="@+id/nested_scroll"
android:layout_width="match_parent"
android:layout_height="150dp"
android:fillViewport="true"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_order_items"
android:layout_width="match_parent"
android:layout_height="0dp" />
</androidx.core.widget.NestedScrollView>
和
rv_order_items.isNestedScrollingEnabled = true
但我无法在内部回收视图中滚动,有什么建议吗?