<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:fastScrollEnabled="true"
    app:fastScrollHorizontalThumbDrawable="@drawable/fastscroll_thumb_material_light"
    app:fastScrollHorizontalTrackDrawable="@drawable/fastscroll_track_material_light"
    app:fastScrollVerticalThumbDrawable="@drawable/fastscroll_thumb_material_light"
    app:fastScrollVerticalTrackDrawable="@drawable/fastscroll_track_material_light" />

<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:scrollbars="none"
    app:fastScrollEnabled="true"
    app:fastScrollHorizontalThumbDrawable="@drawable/fastscroll_thumb_material_light"
    app:fastScrollHorizontalTrackDrawable="@drawable/fastscroll_track_material_light"
    app:fastScrollVerticalThumbDrawable="@drawable/fastscroll_thumb_material_light"
    app:fastScrollVerticalTrackDrawable="@drawable/fastscroll_track_material_light" />

Disable regular scrollbar in RecyclerView when enabling fast scroll
Disable regular scrollbar in RecyclerView when enabling fast scroll
