Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaredrummler/fastscroll-recyclerview

ReyclerView with fast scrolling and scroll popups
https://github.com/jaredrummler/fastscroll-recyclerview

android android-library fastscroll fastscroll-recyclerview recyclerview

Last synced: 3 months ago
JSON representation

ReyclerView with fast scrolling and scroll popups

Awesome Lists containing this project

README

        

# ![image](./demo/src/main/res/mipmap-mdpi/ic_launcher.png) FastScroll-RecyclerView

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.jaredrummler/fastscroll-recyclerview/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.jaredrummler/fastscroll-recyclerview) [![License](http://img.shields.io/:license-apache-blue.svg)](LICENSE) [![API](https://img.shields.io/badge/API-11%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=14)

![DEMO GIF](art/demo.gif "DEMO")

Usage
-----

Add the view to your layout:

```xml

```

Create a `RecyclerView.Adapter` that extends `FastScrollRecyclerView.SectionedAdapter`:

```java
private static class RecyclerAdapter extends RecyclerView.Adapter
implements FastScrollRecyclerView.SectionedAdapter {

private final String[] countries;

public RecyclerAdapter(String[] countries) {
this.countries = countries;
}

...

@NonNull @Override public String getSectionName(int position) {
return countries[position].substring(0, 1).toUpperCase(Locale.ENGLISH);
}

}
```

Download
--------

Download [the latest AAR](https://repo1.maven.org/maven2/com/jaredrummler/fastscroll-recyclerview/1.0.3/fastscroll-recyclerview-1.0.3.aar) or grab via Gradle:

```groovy
compile 'com.jaredrummler:fastscroll-recyclerview:1.0.3'
```
or Maven:
```xml

com.jaredrummler
fastscroll-recyclerview
1.0.3
aar

```

Credits
-------

This library is based on [Google's Launcher3](https://android.googlesource.com/platform/packages/apps/Launcher3/) fast scroller.

Some of the code in this library is from [Tim Malseed's](https://github.com/timusus) project [RecyclerView-FastScroller](https://github.com/timusus/RecyclerView-FastScroll)

License
--------

Copyright (C) 2016 Jared Rummler

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.