I need to show vertical fast scrollbar in recyclerview permanently visible on screen.
It appears faded up when I open the screen and when I scroll recycler view the scroll bar appears but again fades within seconds. How can I achieve the same.
I have already tried these properties:
android:fadeScrollbars="false"
ScrollView.setScrollbarFadingEnabled(false);
android:scrollbarFadeDuration="0"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbarAlwaysDrawHorizontalTrack="true"
My Recycler view looks like this:
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/list"
app:fastScrollEnabled="true"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:layout_marginRight="@dimen/_15sdp"
app:fastScrollHorizontalThumbDrawable="@drawable/thumb_drawable"
app:fastScrollHorizontalTrackDrawable="@drawable/line_drawable"
app:fastScrollVerticalThumbDrawable="@drawable/thumb_drawable"
app:fastScrollVerticalTrackDrawable="@drawable/line_drawable"
android:name="com.fca.ecocoaching.home.PreviousTripFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutManager="LinearLayoutManager"
tools:context=".ui.previoustrip.PreviousTripFragment"
tools:listitem="@layout/fragment_trip"/>