How to reverse recyclerView items with CoordinatorLayout as root layout?
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
tools:context=".MainActivity">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_main_students"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="true"
android:scrollbars="vertical"
/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
and app:reverseLayout="true"
not working for recyclerview.
Note: I want reverse recyclerView not reverese collection