There is a RecyclerView and a large list. It is necessary to enable fast scrolling of the list, as on ListView . Subtracted that it is necessary to use libraries of 26 versions in which app:fastScrollEnabled supported. I decided to check:
... compileSdkVersion 26 ... minSdkVersion 15 targetSdkVersion 26 ... dependencies { ... compile 'com.android.support:appcompat-v7:26.1.0' compile 'com.android.support:design:26.1.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:recyclerview-v7:26.1.0' compile 'com.android.support:support-v4:26.1.0' compile 'com.android.support:support-vector-drawable:26.1.0' ... I add RecyclerView:
<android.support.v7.widget.RecyclerView android:id="@+id/rv" android:layout_width="match_parent" android:layout_height="match_parent" app:fastScrollEnabled="true" app:fastScrollHorizontalThumbDrawable="@drawable/fast_scroll_thumb" app:fastScrollHorizontalTrackDrawable="@drawable/fast_scroll_track" app:fastScrollVerticalThumbDrawable="@drawable/fast_scroll_thumb" app:fastScrollVerticalTrackDrawable="@drawable/fast_scroll_track"/> I added all the necessary resources and try to launch the application on a tablet with API 15, but there is no scrolling at all. I add the android:scrollbars="vertical" scrolling indicator appears, but I can not move the slider.
Maybe I missed something?
UPD: It turns out that when a large number of elements is present, the slider becomes small and impossible to see. I understand how to make it a fixed size.
UPD-2: I cannot attach a static image to the slider. The application simply crashes.
Attempt to set
<size android:height="30dp" android:width="30dp"/> only increases the width of the slider, the height remains negligible to notice or click on it
ThumbDrawabledescribe with specific sizes? - woesss