MultiTypeRecyclerViewAdapter
一个专注于RecyclerView刷新的库,可配合大多数Adapter
特点
- 与Adapter为组合关系,可配合大多数Adapter
- 一行代码刷新相应viewType
- 支持facebook的shimmer加载效果
- 支持粘性头
- 支持异步刷新,可扩展(如配合RxAndroid)
- 支持加载相应type错误页面
- 支持高频率刷新(流畅,异步执行)
效果
Rx线性排布
一般线性排布
方格排布
关键字高亮
刷新错误页面
高频率刷新
gradle依赖
compile 'com.crazysunj:multitypeadapter:1.3.0'
感谢
查看更多)
版本(-
1.3.0:支持刷新type错误页面(可自定义),支持同时刷新多个type(异步),链式注册资源,支持刷新单个数据,支持清除单个type等
-
1.2.1:默认DiffCallBack判别条件增加type,helper增加Diff刷新回调
-
1.2.0:与Adapter形成组合,修复崩溃,支持关键字高亮,增加loading效果等
-
1.1.0:扩展方格布局等
传送门
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.