Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prashantsolanki3/Snap-RecyclerView-Utils
No need to implement an Adapter for every RecyclerView. Snap Adapters initializes in a single line and comes with endless loader and multiple layout.
https://github.com/prashantsolanki3/Snap-RecyclerView-Utils
Last synced: 6 days ago
JSON representation
No need to implement an Adapter for every RecyclerView. Snap Adapters initializes in a single line and comes with endless loader and multiple layout.
- Host: GitHub
- URL: https://github.com/prashantsolanki3/Snap-RecyclerView-Utils
- Owner: prashantsolanki3
- License: apache-2.0
- Created: 2015-12-05T10:19:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-08T16:12:26.000Z (about 8 years ago)
- Last Synced: 2024-04-25T22:33:46.015Z (8 months ago)
- Language: Java
- Homepage: https://prashantsolanki3.github.io/Snap-RecyclerView-Utils/
- Size: 367 KB
- Stars: 72
- Watchers: 6
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-android - Snap RecyclerView Utils - Populate Single or multiple Layout RecyclerView without creating an Adapter. (Libraries / GUI)
- awesome-android - Snap RecyclerView Utils - Populate Single or multiple Layout RecyclerView without creating an Adapter. (Libraries / GUI)
README
# Snap RecyclerView Utils
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Snap--RecyclerView--Utils-brightgreen.svg?style=flat-square)](https://android-arsenal.com/details/1/2884)
[![Travis CI](https://travis-ci.org/prashantsolanki3/Snap-RecyclerView-Utils.svg)](https://travis-ci.org/prashantsolanki3/Snap-RecyclerView-Utils)Simple Library to create RecyclerView Adapters and Viewholder in a snap.
## Features
* Simple RecyclerView Adapter
* Multiple Layouts RecyclerView Adapter
* Endless Loader
* Alternate View Support
* Automatic Empty RecyclerView Layout Handling
* Adapter based OnItemClickListener## Add to your project
[![Release](https://img.shields.io/github/release/prashantsolanki3/Snap-RecyclerView-Utils.svg?label=jitpack)](https://jitpack.io/#prashantsolanki3/Snap-RecyclerView-Utils)
###[Check out v2 Beta!](https://github.com/prashantsolanki3/Snap-RecyclerView-Utils/releases)
Add JitPack to repositories in your project's root `build.gradle` file:
```Gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```Add the dependency to your module's `build.gradle` file:
```Gradle
dependencies {
...
compile 'com.github.prashantsolanki3:Snap-RecyclerView-Utils:v1.8'
}
```---
## Usage
###[Check out the wiki!](https://github.com/prashantsolanki3/Snap-RecyclerView-Utils/wiki)
Make a `ViewHolder` which extends `SnapViewHolder`.
```Java
SnapAdapter adapterRecycler = new SnapAdapter<>(
getContext(), //Context
SimpleProduct.class, //Model class, matching generic type
R.layout.item_recycler_product, // Item Layout
ViewHolderProduct.class); // ViewHolder class, matching generic type
recyclerView.setAdapter(adapterRecycler);//Add items to RecyclerView
adapterRecycler.addAll(new ArrayList());
```
### Yeah That's All!***
##Contribute
Contribute by creating issues (tagged enhancement, bugs) in the repo or create a pull request.
##Using Snap RecyclerView Utils?
If you are using Snap RecyclerView Utils in your app and would like to be listed here, please let us know opening a new issue!
###License
Copyright 2015 Prashant Solanki
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.