MultiTypeRecyclerViewAdapter

Introduction: 一个专注于 RecyclerView 优雅刷新(接管资源和数据源)的 MVP 模式库,可配合大多数 Adapter
More: Author   ReportBugs   OfficialWebsite   
Tags:

License

一个专注于 RecyclerView 优雅刷新(接管资源和数据源来代理 Adapter 进行数据处理)的轻量级 MVP 模式库,让你更关注 UI 逻辑,对 Adapter 进行组件化封装(大型 UI 框架也可)效果更佳

架构

特点

  • 一行代码刷新(附动画)单个 level(一个 level 可对应多个 type)
  • 支持常规增删改查操作
  • 支持 RecyclerView 组件化
  • 支持异步,高频率,链式刷新,可扩展(如配合 RxJava)
  • 单个 level 支持 Loading(加载),Empty(空),Error(错误)页面切换
  • 单个 level 支持 header,footer
  • 单个 level 支持展开和闭合(附动画)
  • 支持刷新生命周期回调
  • 异步差量计算数据,只刷新改动部分,对比算法可自定义
  • 支持动态注册资源(根据服务端返回数据解析注册,不再静态写死)

传送门

博客:http://crazysunj.com/

谷歌邮箱:twsunj@gmail.com

QQ 邮箱:387953660@qq.com

版本记录

使用说明书

由于我们专注于数据处理使得复杂布局非常简单,但我们与 UI 是完全解耦,开发者可以定制各种 UI(使用各种 Adapter),每一种 level 相当于一个简单的 Activity 页面,想知道具体的用法,可以阅读文档;想知道具体效果,可以参考一下 Demo。

注:本库已从 jcenter 迁移 mavenCentral,请重新依赖,具体参考使用说明书

欢迎大家的 star(fork)

如果大家有什么问题或者觉得哪里需要优化改进或者有新奇想法可以发我邮箱或者直接加我 QQ387953660,大家一起来探讨

License

Copyright 2017 Sun Jian

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.
Apps
About Me
GitHub: Trinea
Facebook: Dev Tools