Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jaredrummler/fastscroll-recyclerview
- Owner: jaredrummler
- License: apache-2.0
- Created: 2016-02-09T07:39:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-18T12:53:52.000Z (over 7 years ago)
- Last Synced: 2024-11-02T08:08:20.048Z (3 months ago)
- Topics: android, android-library, fastscroll, fastscroll-recyclerview, recyclerview
- Language: Java
- Homepage:
- Size: 2.23 MB
- Stars: 35
- Watchers: 5
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:
```xmlcom.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 athttp://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.