I am new to RecyclerView and I want to implement the fast scroll feature in RecyclerView like google contact application and search on the internet and i found that now Andr
With Support Library 26, we can easily enable fast scrolling for RecyclerView. Let’s get to it!
Let’s go over each property one by one :
add in build.gradle
dependencies {
....
compile 'com.android.support:design:26.0.1'
compile 'com.android.support:recyclerview-v7:26.0.1'
....
}
Since Support Library 26 has now been moved to Google’s maven repository, let’s include that in our project level build.gradle
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
activity_main.xml
add below four xml file in your drawable folder,
line_drawable.xml
line.xml
thumb_drawable.xml
thumb.xml