Issue
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_sales_report"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="20dp"
android:clipToPadding="false"
android:paddingHorizontal="10dp"
android:paddingBottom="120dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/mtv_sales_report_date"
tools:listitem="@layout/item_reportings_new" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_dynamic_inner_reporting"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="vertical"
android:paddingBottom="10dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintTop_toBottomOf="@id/mtv_date_dynamic"
tools:listitem="@layout/item_inner_reporting" />
The inner recycler view is not scrolling I have tried many solutions, non helped me, how can I make the inner recycler view scroll vertically, they both scroll vertically.
Solution
Issue is solved by showing only four items in the inner Recycler View, and enabling nestedScrollView = true, also handling OnTouch Events for the parent Recycler View.
Answered By - Said
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.