Recycler Fast Scroll


Source link: https://github.com/plusCubed/recycler-fast-scroll

Recycler Fast Scroll

Widget for RecyclerView fast scrolling, like Android's built-in fast scroll option for ListView.
Supports any vertically scrolling LayoutManager, as well as proper integration for AppBarLayout.

Planned features are listed at the issues page.
You can download the sample APK from the releases page.

Sample

Dependency

Add this to your module's build.gradle file:

repositories {
  //...  maven {
 url "https://jitpack.io" 
}
 
}

dependencies {
  //...  compile 'com.github.pluscubed:recycler-fast-scroll:{
latest-version
}
@aar' 
}

The library is versioned according to Semantic Versioning.

Basic Usage

  1. Add the widget to your layout file, e.g.:

    <FrameLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent">
    
    <android.support.v7.widget.RecyclerView
    
    android:layout_width="match_parent"
    
    android:layout_height="match_parent" />
    
    <com.pluscubed.recyclerfastscroll.RecyclerFastScroller
    
    android:layout_width="wrap_content"
    
    android:layout_height="match_parent"
    
    android:layout_gravity="end" />  </FrameLayout>
  2. Attach the RecyclerFastScroller to your RecyclerView:

    fastScroller.attachRecyclerView(recyclerView);
    

    If the adapter hasn't been set when you attach the fast scroller, call attachAdapter() afterwords.

See the sample project for demos.

AppBarLayout support

Use attachAppBarLayout(coordinatorLayout, appBarLayout). See the sample project for the demo.

Customization

Method Attribute Description
setBarColor(int color) rfs_barColor Color of scrollbar. Defaults to colorControlNormal attribute. Alpha of ~22% is applied to the drawable to match stock ListView fast scroller.
setHandleNormalColor(int color) rfs_handleNormalColor Color of handle. Defaults to colorControlNormal attribute.
setHandlePressedColor(int color) rfs_handlePressedColor Color of pressed handle. Defaults to colorAccent attribute.
setTouchTargetWidth(int width) rfs_touchTargetWidth Width of the touch target. Defaults to 24dp (while the Android docs recommend at least 48dp, 24dp is more practical considering it will block touch in the right of the RecyclerView).
setHideDelay(int milliseconds) rfs_hideDelay Hide delay in milliseconds. Defaults to 1500ms.
setHidingEnabled(boolean enabled) rfs_hidingEnabled Whether scrollbar is hidden after delay. Defaults to true.
setOnHandleTouchListener(OnTouchListener listener) -- Sets listener for handle touch events.

Corresponding getters are also available.

####Attribute Usage

<com.pluscubed.recyclerfastscroll.RecyclerFastScroller
  ...
  app:{
attributeName
}
="{
value
}
"/>

License

Copyright 2016 Daniel Ciao  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. 

Resources

Droid-vizu aims to provide cool visualization effects for any Android audio project. Maintainable modular design allows users to easily swap Renderer class to get corresponding effects.

A customize multiple state layout for Android.

A new Material Design text field that comes in a box, based on Google Material Design guidelines.

GeoFirebase is a libray to simplify the Firebase Database queries based on geolocations proximity. It will return every node in a given radius for a set of cordinates.

Command line tool to access Android Demo Ui

This tools has 2 modes:

  • Standart mode, application will evaluate all arguments, apply them and exit
  • Live mode, application starts to listen for supplied arguments and apply them. This mode helps to tweak options and receive fast feedback.

A library that converts Time to its equivalent basic local languages starting with three basic Nigeria languages (Yoruba, Hausa and Igbo) with others in pipeline.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes