All Projects → infinum → Mjolnirrecyclerview

infinum / Mjolnirrecyclerview

Licence: apache-2.0
[DEPRECATED] This library is no longer maintained and it will not receive any more updates.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Mjolnirrecyclerview

Multiselectadapter
MultiSelectAdapter可以让你的Adapter快速实现多选和批量操作
Stars: ✭ 195 (-16.31%)
Mutual labels:  recyclerview
Commonadapter
一个适用于ListView/GridView/RecyclerView的Adapter库,简化大量重复代码,支持多种布局,可自定义图片加载的实现。
Stars: ✭ 219 (-6.01%)
Mutual labels:  recyclerview
Rvparallaximageview
RvParallaxImageView用在recyclerview的item中,它可以随着recyclerview进行视差效果的移动,进而可以在一个小区域的item中展示一个完整的图片。适用于在recyclerview的item中显示大的广告图。
Stars: ✭ 224 (-3.86%)
Mutual labels:  recyclerview
Tabscrollattacher
Attach TabLayout and RecyclerView. Useful for categorizing RecyclerView items.
Stars: ✭ 196 (-15.88%)
Mutual labels:  recyclerview
Licenseadapter
adapter for RecyclerView to display app's oss dependencies' license
Stars: ✭ 209 (-10.3%)
Mutual labels:  recyclerview
Async Expandable List
Stars: ✭ 221 (-5.15%)
Mutual labels:  recyclerview
Diffadapter
A high-performance , easy-to-use Adapter for RecyclerView ,using diffutil
Stars: ✭ 193 (-17.17%)
Mutual labels:  recyclerview
Overscroll Decor
Android: iOS-like over-scrolling effect applicable over almost all scrollable Android views.
Stars: ✭ 2,671 (+1046.35%)
Mutual labels:  recyclerview
Recycler View Margin Decoration
A library for add margin each item in RecyclerView.
Stars: ✭ 217 (-6.87%)
Mutual labels:  recyclerview
Gridpagersnaphelper
A powerful tools to impl grid paging layout by RecyclerView
Stars: ✭ 228 (-2.15%)
Mutual labels:  recyclerview
Smilerefresh
微笑下拉刷新。这是在 SwipeRefreshLayout基础上修改的下拉刷新库。
Stars: ✭ 203 (-12.88%)
Mutual labels:  recyclerview
Kohii
Android Video Playback made easy.
Stars: ✭ 204 (-12.45%)
Mutual labels:  recyclerview
Lrecyclerview
RecyclerView下拉刷新,自动加载更多;仿IOS侧滑Item删除菜单(盼望大家扩展更多功能)
Stars: ✭ 2,466 (+958.37%)
Mutual labels:  recyclerview
Advancedrecyclerview
An easy, empowering Kotlin library for RecyclerView
Stars: ✭ 197 (-15.45%)
Mutual labels:  recyclerview
Sugaradapter
Make RecyclerView.Adapter Great Again!
Stars: ✭ 229 (-1.72%)
Mutual labels:  recyclerview
Shimmer Recyclerview X
🌀 ShimmerRecyclerViewX for AndroidX
Stars: ✭ 193 (-17.17%)
Mutual labels:  recyclerview
Animatedrecyclerview
RecyclerView with layout animations
Stars: ✭ 220 (-5.58%)
Mutual labels:  recyclerview
Dsladapter
🔥 Kotlin时代的Adapter, Dsl 的形式使用 RecyclerView.Adapter, 支持折叠展开, 树结构,悬停,情感图状态切换, 加载更多, 多类型Item,侧滑菜单等
Stars: ✭ 231 (-0.86%)
Mutual labels:  recyclerview
Reswipecard
a light lib for swipe the cards implemented by RecyclerView
Stars: ✭ 230 (-1.29%)
Mutual labels:  recyclerview
Admobadapter
It wraps your Adapter to display Admob native ads and banners in a ListView/RecyclerView data set. It based on the Yahoo fetchr project https://github.com/yahoo/fetchr
Stars: ✭ 224 (-3.86%)
Mutual labels:  recyclerview

[DEPRECATED] MjolnirRecyclerView - This library is no longer maintained and it will not receive any more updates.

==========

CircleCI JCenter Method count Android Arsenal

Provides a simple way to extend the default RecyclerView behaviour with support for headers, footers, empty view, DiffUtil and ArrayAdapter like methods.

Usage

Add the library as a dependency to your build.gradle

compile 'co.infinum:mjolnirrecyclerview:[email protected]'

Check the latest version here.

Features

1. Header & footer support

Add a custom number of headers and footers to MjolnirRecyclerView by using 2 simple methods from MjolnirRecyclerAdapter:

    adapter.setHeader(View view)
    adapter.setHeader(View view)

2. Empty view

Empty view support for MjolnirRecyclerView. View is automatically hidden when adapter is populated with some data, and is automatically shown once again when adapter becomes empty.

    recyclerView.setEmptyView(View view)

You can also show empty view while adapter is not set to the MjolnirRecyclerView, which is handy if you want to intialize adapter at some later point in the time.

    // show empty view if adapter is not set
    recyclerView.setEmptyView(View view, true)

3. DiffUtil

DiffUtil support for MjolnirRecyclerAdapter. Simply add DiffUtil.Callback in adapters update method:

    adapter.update(new ItemDiffUtilResult())

As DiffUtil is a blocking sync action, it's executed on the background thread inside the MjolnirRecyclerAdapter by using a AsyncTask. As a result of this approach, you need to call cancel() method on your adapter when your activity or fragment is about to be destroyed, so that the adapter is not updated if the screen has been destroyed.

    @Override
    protected void onDestroy() {
        super.onDestroy();
        adapter.cancel();
    }

4. ArrayAdapter like methods

MjolnirRecyclerAdapter has full support for ArrayAdapter methods, like add(), addAll(), reset(), remove(), set()...

Contributing

Feedback and code contributions are very much welcome. Just make a pull request with a short description of your changes. By making contributions to this project you give permission for your code to be used under the same license.

Credits

Maintained and sponsored by Infinum.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].