Итак, у меня есть recyclerview, а внутри этого recyclerview еще один, я хочу прокрутить внутренний recyclerview, я заставил его работать со следующим
Это макет внутри основного recyclerview
<androidx.core.widget.NestedScrollView
android:id="@+id/nested_scroll"
android:layout_width="match_parent"
android:layout_height="250dp"
android:fillViewport="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout">
<ExpandableListView
android:id="@+id/expandableListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:nestedScrollingEnabled="true"/>
</androidx.core.widget.NestedScrollView>
Теперь, если у меня недостаточно элементов в моем внутреннем recyclerview, прокрутка основного recyclerview не будет работать, вместо этого, если я помещу
<androidx.core.widget.NestedScrollView
android:id="@+id/nested_scroll"
android:layout_width="match_parent"
android:layout_height="250dp"
android:fillViewport="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout">
<ExpandableListView
android:id="@+id/expandableListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:nestedScrollingEnabled="false"/>
</androidx.core.widget.NestedScrollView>
android:nestedScrollingEnabled="false"
, мой основной свиток recyclerview когда внутри внутреннего recyclerview не хватает элементов, но я хочу, чтобы внутренний recyclerview прокручивал основной, даже если внутри него недостаточно элементов, вместо этого прокрутка должна выполняться из основного представления recyclerview