# SimpleRecyclerView
**Repository Path**: larno/SimpleRecyclerView
## Basic Information
- **Project Name**: SimpleRecyclerView
- **Description**: No description available
- **Primary Language**: Android
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2017-02-27
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# SimpleRecyclerView
[](https://jitpack.io/#jaychang0917/SimpleRecyclerView)
[](http://androidweekly.net/issues/issue-243)
A RecyclerView extension for building list more easily.
##[Screenshot](https://github.com/jaychang0917/SimpleRecyclerView/blob/master/art/screenshot.md)
##Table of Contents
- [Basic Usage](#basic_usage)
- [Multiple Types](#multi_types)
- [Cell Operations](#cell_ops)
- [Divider](#divider)
- [Spacing](#spacing)
- [Empty State View](#empty_view)
- [Section Header](#section_header)
- [Auto Load More](#auto_load_more)
- [Load more threshold](#load_more_threshold)
- [Load more view](#load_more_view)
- [Load more to top](#load_more_top)
- [Drag & Drop](#drag_drop)
- [Swipe To Dismiss](#swipe_dismiss)
- [Snappy](#snappy)
- [References](#refs)
- [Attributes](#attr)
- [Cell Operations](#cell_ops_list)
##Sample Project
[Sample apk](https://github.com/jaychang0917/SimpleRecyclerView/blob/master/art/SimpleRecyclerView_1_1_0.apk)
##Installation
In your project level build.gradle :
```java
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```
In your app level build.gradle :
```java
dependencies {
compile 'com.github.jaychang0917:SimpleRecyclerView:1.1.8'
}
```
---
##Basic Usage
Basically, there are three steps to build your list.
####1. Configure the SimpleRecyclerView
>[Full attributes list](#attr)
```xml
```
####2. Define the cell by extending `SimpleCell`
```java
/**
* Accept two type arguments,
* 1st is the data model this cell represents, 2nd is the view holder.
* */
public class BookCell extends SimpleCell {
/**
* Mandatory constructor, pass your data model as argument
* */
public BookCell(Book item) {
super(item);
}
/**
* Define the layout resource of this cell
* */
@Override
protected int getLayoutRes() {
return R.layout.cell_book;
}
@NonNull
@Override
protected ViewHolder onCreateViewHolder(ViewGroup parent, View cellView) {
return new ViewHolder(cellView);
}
@Override
protected void onBindViewHolder(ViewHolder holder, int position, Context context, List