Code Monkey home page Code Monkey logo

multityperecyclerviewadapter's Introduction

MultiTypeRecyclerViewAdapter

一个专注于RecyclerView刷新的库,可配合大多数Adapter

特点

  • 与Adapter为组合关系,可配合大多数Adapter
  • 一行代码刷新相应viewType
  • 支持facebook的shimmer加载效果
  • 支持粘性头
  • 支持异步刷新,可扩展(如配合RxAndroid)
  • 支持加载相应type错误页面
  • 支持高频率刷新(流畅,异步执行)

效果

Rx线性排布

一般线性排布

方格排布

关键字高亮

刷新错误页面

高频率刷新

gradle依赖

compile 'com.crazysunj:multitypeadapter:1.3.0'

感谢

shimmer-android

版本(查看更多)

  • 1.3.0:支持刷新type错误页面(可自定义),支持同时刷新多个type(异步),链式注册资源,支持刷新单个数据,支持清除单个type等

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

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

  • 1.1.0:扩展方格布局等

传送门

博客:http://crazysunj.com/

邮箱:[email protected]

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.

multityperecyclerviewadapter's People

Contributors

crazysunj avatar

Watchers

James Cloos avatar xiongxiaolong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.