All Projects → TakuSemba → Multisnaprecyclerview

TakuSemba / Multisnaprecyclerview

Licence: apache-2.0
Android library for multiple snapping of RecyclerView

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Multisnaprecyclerview

Snappyrecyclerview
An extension to RecyclerView which will snap to child Views to the specified anchor, START, CENTER or END.
Stars: ✭ 178 (-92.44%)
Mutual labels:  snap
Txeh
Go library and CLI utilty for /etc/hosts management.
Stars: ✭ 181 (-92.32%)
Mutual labels:  library
Geostats
A tiny and standalone javascript library for classification and basic statistics :
Stars: ✭ 183 (-92.23%)
Mutual labels:  library
Operatorkit
An opinionated Go framework for developing Kubernetes operators
Stars: ✭ 179 (-92.4%)
Mutual labels:  library
Ckchangelog
ckChangeLog - An Android Library to display a Change Log
Stars: ✭ 180 (-92.36%)
Mutual labels:  library
Materialshadows
Material Shadows for android : A library for supporting convex material shadows
Stars: ✭ 2,145 (-8.96%)
Mutual labels:  library
Spannabletextview
SpannableTextView is a custom TextView which lets you customize the styling of slice of your text or statment via Spannables, but without the hassle of having to deal directly with Spannable themselves.
Stars: ✭ 177 (-92.49%)
Mutual labels:  library
Md max72xx
LED Matrix Library
Stars: ✭ 186 (-92.11%)
Mutual labels:  library
Micro Aws Lambda
A 7KB and 0 dependencies AWS Lambda library which supports middleware and easy debug.
Stars: ✭ 181 (-92.32%)
Mutual labels:  library
Kau
An extensive collection of Kotlin Android Utils
Stars: ✭ 182 (-92.28%)
Mutual labels:  library
Rawspeed
fast raw decoding library
Stars: ✭ 179 (-92.4%)
Mutual labels:  library
Dtl
diff template library written by C++
Stars: ✭ 180 (-92.36%)
Mutual labels:  library
Librabbitmq
Python bindings to librabbitmq-c
Stars: ✭ 181 (-92.32%)
Mutual labels:  library
Preview Transition
This project is maintained by Ramotion, Inc. We specialize in the designing and coding of custom UI for Mobile Apps and Websites.
Stars: ✭ 2,079 (-11.76%)
Mutual labels:  library
Slick Ui
Lightweight Phaser UI plugin
Stars: ✭ 184 (-92.19%)
Mutual labels:  library
Disco
a protocol to encrypt communications and a cryptographic library based on Disco
Stars: ✭ 178 (-92.44%)
Mutual labels:  library
Cordova Plugin Screen Orientation
Cordova Plugin Screen Orientation
Stars: ✭ 181 (-92.32%)
Mutual labels:  library
Libpurecoollink
Dyson Pure Cool link python library
Stars: ✭ 186 (-92.11%)
Mutual labels:  library
Riot Api Java
Riot Games API Java Library
Stars: ✭ 184 (-92.19%)
Mutual labels:  library
Speedometer
A lightweight circular indicator view library for Android
Stars: ✭ 183 (-92.23%)
Mutual labels:  library

MultiSnapRecyclerView

Gradle

dependencies {
    implementation 'com.github.takusemba:multisnaprecyclerview:x.x.x'
}

Features

Build Status Download License API

This is an Android Library for multiple snapping of RecyclerView. MultiSnapRecyclerView easily provides a snapping feature to your recycler view. What this does are clean, neat, and powerful.

  • gravitated snapping to start end and center.
  • snap count to specify the number of items to scroll over.
  • supports horizontal and vertical scrolling.
  • listener to be called when snapped.
  • sample code.
  • support reverse layout.

Make sure to use LinearManger. Other managers are not supported.



Usage

There are two ways to use MultiSnapRecyclerView.

You can either use MultiSnapRecyclerView in your layout.

<com.takusemba.multisnaprecyclerview.MultiSnapRecyclerView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:msrv_gravity="start" or center, end
        app:msrv_interval="2" items to scroll over
        app:msrv_ms_per_inch="100" /> // speed of scrolling through.

Or you can simply attach MultiSnapHelper to your normal RecyclerView.

val multiSnapHelper = MultiSnapHelper(gravity, interval, speedMsPerInch)
multiSnapHelper.attachToRecyclerView(recyclerView)

Sample

Clone this repo and check out the app module.

Author

Licence

Copyright 2017 Taku Semba.

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].