<commit_before># PracticalRecyclerView

Encapsulation RecyclerView, to create for the development of a very practical tool, add some commonly used in the development of function, such as drop-down refresh, paging, automatic loading, loading error, etc.More new functions will gradually add...

标签（空格分隔）： Android RecyclerView

---

## 对RecyclerView的一个封装,添加一些实用的功能

### 主要功能:

- 下拉刷新,使用默认的下拉刷新控件
- 页面加载数据过程中显示LoadingView
- 页面加载数据出错时显示ErrorView
- 页面数据大小为0时显示EmptyView
- 自动加载,当页面到底部或者当前页面显示不全时,自动加载其余数据,并显示LoadMoreView
- 加载更多时出错自动停止加载更多,并显示LoadMoreFailedView
- 没有更多数据加载时,显示NoMoreView
- 支持Header View和Footer View
- 除下拉刷新以外,其余View均可自定义
- 支持多种Item类型
- 支持GridLayout和瀑布流

### 2016-10-11 更新:

- 新增动态显示或关闭NoMoreView,LoadMoreView,LoadMoreFailedView功能
- 新增打开或关闭自动加载功能
- 新增手动触发加载demo

### 2016-10-17 更新:

- 增加获取RecyclerView接口

```java
    public RecyclerView get() {
            return mRecyclerView;
    }
```
- 增加拖拽功能与demo

### 2016-10-18 更新:

- 向下支持到API 11(android 3.0)
- AbstractAdapter增加更多操作数据接口, 如:

```java
    public void clearData() {}

    public void clearHeader() {}

    public void clearFooter() {}

    public void insert(){}

    public void insertBack(){}

    //等等

```
- 增加ExpandItemList demo

### 2016-11-7 更新:

- 新增添加单个数据接口 void add(T item);

### 2017-1-22 更新

- 修复需要滑动两次才能显示loadmore的bug.


### 效果图

    <img width="30%" src="https://github.com/ssseasonnn/PracticalRecyclerView/blob/master/gif/GIF.gif?raw=true">
    <img width="30%" src="https://github.com/ssseasonnn/PracticalRecyclerView/blob/master/gif/multiitem.gif?raw=true">
    
    <img width="30%" src="https://github.com/ssseasonnn/PracticalRecyclerView/blob/master/gif/grid.gif?raw=true">
    <img width="30%" src="https://github.com/ssseasonnn/PracticalRecyclerView/blob/master/gif/stagger.gif?raw=true">


	<img width="30%" src="https://github.com/ssseasonnn/PracticalRecyclerView/blob/master/gif/manual.gif?raw=true">
	<img width="30%" src="https://github.com/ssseasonnn/PracticalRecyclerView/blob/master/gif/drag.gif?raw=true">
	<img width="30%" src="https://github.com/ssseasonnn/PracticalRecyclerView/blob/master/gif/expand.gif?raw=true">





### 使用方式:

1.添加Gradle依赖

[![Download](https://api.bintray.com/packages/ssseasonnn/android/PracticalRecyclerView/images/download.svg)](https://bintray.com/ssseasonnn/android/PracticalRecyclerView/_latestVersion)

```groovy
	dependencies{
   		 compile 'zlc.season:practicalrecyclerview:1.1.5'
	}
```<commit_msg>commit code.<commit_after># PracticalRecyclerView

Encapsulation RecyclerView, to create for the development of a very practical tool, add some commonly used in the development of function, such as drop-down refresh, paging, automatic loading, loading error, etc.More new functions will gradually add...

标签（空格分隔）： Android RecyclerView

---

## 对RecyclerView的一个封装,添加一些实用的功能

### 主要功能:

- 下拉刷新,使用默认的下拉刷新控件
- 页面加载数据过程中显示LoadingView
- 页面加载数据出错时显示ErrorView
- 页面数据大小为0时显示EmptyView
- 自动加载,当页面到底部或者当前页面显示不全时,自动加载其余数据,并显示LoadMoreView
- 加载更多时出错自动停止加载更多,并显示LoadMoreFailedView
- 没有更多数据加载时,显示NoMoreView
- 支持Header View和Footer View
- 除下拉刷新以外,其余View均可自定义
- 支持多种Item类型
- 支持GridLayout和瀑布流

### 2016-10-11 更新:

- 新增动态显示或关闭NoMoreView,LoadMoreView,LoadMoreFailedView功能
- 新增打开或关闭自动加载功能
- 新增手动触发加载demo

### 2016-10-17 更新:

- 增加获取RecyclerView接口

```java
    public RecyclerView get() {
            return mRecyclerView;
    }
```
- 增加拖拽功能与demo

### 2016-10-18 更新:

- 向下支持到API 11(android 3.0)
- AbstractAdapter增加更多操作数据接口, 如:

```java
    public void clearData() {}

    public void clearHeader() {}

    public void clearFooter() {}

    public void insert(){}

    public void insertBack(){}

    //等等

```
- 增加ExpandItemList demo

### 2016-11-7 更新:

- 新增添加单个数据接口 void add(T item);

### 2017-1-22 更新

- 修复需要滑动两次才能显示loadmore的bug.


### 效果图

    <img width="30%" src="https://raw.githubusercontent.com/ssseasonnn/PracticalRecyclerView/master/gif/GIF.gif">
    <img width="30%" src="https://raw.githubusercontent.com/ssseasonnn/PracticalRecyclerView/master/gif/multiitem.gif">
    
    <img width="30%" src="https://raw.githubusercontent.com/ssseasonnn/PracticalRecyclerView/master/gif/grid.gif">
    <img width="30%" src="https://raw.githubusercontent.com/ssseasonnn/PracticalRecyclerView/master/gif/stagger.gif">


	<img width="30%" src="https://raw.githubusercontent.com/ssseasonnn/PracticalRecyclerView/master/gif/manual.gif"> 
	<img width="30%" src="https://raw.githubusercontent.com/ssseasonnn/PracticalRecyclerView/master/gif/drag.gif">  
	<img width="30%" src="https://raw.githubusercontent.com/ssseasonnn/PracticalRecyclerView/master/gif/expand.gif">  





### 使用方式:

1.添加Gradle依赖

[![Download](https://api.bintray.com/packages/ssseasonnn/android/PracticalRecyclerView/images/download.svg)](https://bintray.com/ssseasonnn/android/PracticalRecyclerView/_latestVersion)

```groovy
	dependencies{
   		 compile 'zlc.season:practicalrecyclerview:1.1.5'
	}
```
{'fraction_non_alphanumeric': 0.13781063873485316, 'fraction_numerical': 0.0250564797699733, 'mean_word_length': 4.715962441314554, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1806437', 'n_tokens_mistral': 2235, 'n_tokens_neox': 2193, 'n_words': 271}