xiahuawuyu / MultiTypeRecyclerViewAdapter

MultiTypeRecyclerViewAdapter for Recyclerview(与Adapter为组合关系 ; 一行代码刷新相应viewType ; 支持facebook的shimmer加载效果 ; 支持粘性头 ;支持异步刷新,可扩展(如配合RxAndroid))

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MultiTypeRecyclerViewAdapter

MultiTypeRecyclerViewAdapter for Recyclerview

特点

  • 与Adapter为组合关系
  • 一行代码刷新相应viewType
  • 支持facebook的shimmer加载效果
  • 支持粘性头
  • 支持异步刷新,可扩展(如配合RxAndroid)

效果

Rx线性排布

一般线性排布

方格排布

关键字高亮

gradle依赖

compile 'com.crazysunj:multitypeadapter:1.2.1'

感谢

shimmer-android

版本(查看更多)

  • 1.2.1:默认DiffCallBack判别条件增加type,helper增加Diff刷新回调

  • 1.2.0:与Adapter形成组合,修复崩溃,支持关键字高亮,增加loading效果等

  • 1.1.0:扩展方格布局等

传送门

博客:http://crazysunj.com/

邮箱:twsunj@gmail.com

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.

About

MultiTypeRecyclerViewAdapter for Recyclerview(与Adapter为组合关系 ; 一行代码刷新相应viewType ; 支持facebook的shimmer加载效果 ; 支持粘性头 ;支持异步刷新,可扩展(如配合RxAndroid))

License:Apache License 2.0


Languages

Language:Java 100.0%