Skip to content
No need to implement an Adapter for every RecyclerView. Snap Adapters initializes in a single line and comes with endless loader and multiple layout.
Java
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Endless Loader working after removing items from recycler. Dec 19, 2015
gradle/wrapper
sample
snaplibrary * Adapter based OnItemClickListener and AlternateVIew Renaming Jan 5, 2016
.gitattributes :neckbeard: Added .gitattributes & .gitignore files Dec 5, 2015
.gitignore Renamed app module to sample, began made necessary methods final, Sna… Dec 8, 2015
.travis.yml
Licence.md Create Licence.md Dec 8, 2015
README.md
build.gradle
gradle.properties
gradlew Initial Commit Dec 5, 2015
gradlew.bat Initial Commit Dec 5, 2015
settings.gradle Renamed app module to sample, began made necessary methods final, Sna… Dec 8, 2015

README.md

Snap RecyclerView Utils

Android Arsenal Travis CI

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

###Check out v2 Beta!

Add JitPack to repositories in your project's root build.gradle file:

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

Add the dependency to your module's build.gradle file:

dependencies {
	...
    compile 'com.github.prashantsolanki3:Snap-RecyclerView-Utils:v1.8'
}

Usage

###Check out the wiki!

Make a ViewHolder which extends SnapViewHolder.

SnapAdapter<SimpleProduct, ViewHolderProduct> 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<SimpleProduct>());

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.

You can’t perform that action at this time.