MultiType - An Android library to create multiple item types list views easily and flexibly

  •        107

An Android library to create multiple item types list views easily and flexibly. Previously, when we need to develop a complex RecyclerView / ListView, it is a difficult and troublesome work. We should override the getItemViewType() of RecyclerView.Adapter , add some types, and create some ViewHolders relating to those types. Once we need to add a new item type, we have to go to the original adapter file and modify some old codes carefully, and these adapter classes will get more complicated.

https://github.com/drakeet/MultiType

Tags
Implementation
License
Platform

   




Related Projects

vlayout - Project vlayout is a powerfull LayoutManager extension for RecyclerView, it provides a group of layouts for RecyclerView

  •    Java

Project vlayout is a powerful LayoutManager extension for RecyclerView, it provides a group of layouts for RecyclerView. Make it able to handle a complicate situation when grid, list and other layouts in the same recyclerview.By providing a custom LayoutManager to RecyclerView, VirtualLayout is able to layout child views with different style at single view elegantly. The custom LayoutManager manages a serial of layoutHelpers where each one implements the specific layout logic for a certain position range items. By the way, implementing your custom layoutHelper and provding it to the framework is also supported.

FastAdapter - The bullet proof, fast and easy to use adapter library, which minimizes developing time to a fraction

  •    Java

The RecyclerView is one of the most used widgets in the Android world, and with it you have to implement an Adapter which provides the items for the view. Most use cases require the same base logic, but require you to write everything again and again. The FastAdapter is here to simplify this process. You don't have to worry about the adapter anymore. Just write the logic for how your view/item should look like, and you are done. This library has a fast and highly optimized core which provides core functionality, most apps require. It also prevents common mistakes by taking away those steps from the devs. Beside being blazing fast, minimizing the code you need to write, it is also really easy to extend. Just provide another adapter implementation, hook into the adapter chain, custom select / deselection behaviors. Everything is possible.

RecyclerView-MultipleViewTypesAdapter - Android library defining adapter classes of RecyclerView to manage multiple view types

  •    Java

The standard way to handle view creation and data binding logics for RecyclerView is to define the single adapter class extending RecyclerView.Adapter. If you need to handle simple view type, you will not get in trouble. But if you need to handle the multiple complex view types, writing logic in single adapter class causes unmaintainable source code. So, this library separates the logic for each view type into single class (DataBinder), and change the role of adapter class (DataBindAdapter) to manage these DataBinder classes. By using this library, the implementation would be simple and clear, and also source code for each view type would be maintenable and reusable. Define class extending DataBinder for each view type. DataBinder class is used to bind view and data.

recyclerview-animators - An Android Animation library which easily add itemanimator to RecyclerView items

  •    Java

RecyclerView Animators is an Android library that allows developers to easily create RecyclerView with animations. Please feel free to use this.

recyclerviewhelper - :page_with_curl: [Android Library] Giving powers to RecyclerView

  •    Java

NOTE : The version here corresponds to the version of recyclerview dependency. This project was created by Nishant Srivastava but hopefully developed and maintained by many others. See the the list of contributors here.


Renderers - Renderers is an Android library created to avoid all the boilerplate needed to use a RecyclerView/ListView with adapters

  •    Java

Renderers is an Android library created to avoid all the RecyclerView/Adapter boilerplate needed to create a list/grid of data in your app and all the spaghetti code that developers used to create following the ViewHolder classic implementation. As performance is also important for us, we've added a new diffUpdate method supporting differential updated transparently. With this library you can improve your RecyclerView/Adapter/ViewHolder code. The one sometimes we copy and paste again and again 😃. Using this library you won't need to create any new class extending from RecyclerViewAdapter.

EasyXRecyclerView - 主要提供了简单易用强大的RecyclerView库,包括自定义刷新加载效果、极简通用的万能适配器Adapter、万能分割线、多种分组效果、常见状态页面、item动画效果、添加多个header和footer、侧滑、拖拽、Sticky(黏性)效果、多item布局等,各模块之间灵活、解耦、通用、又能相互组合使用。

  •    Java

主要提供了简单易用强大的RecyclerView库,包括自定义刷新加载效果、极简通用的万能适配器Adapter、万能分割线、多种分组效果、常见状态页面、item动画效果、添加多个header和footer、侧滑、拖拽、Sticky(黏性)效果、多item布局等,各模块之间灵活、解耦、通用、又能相互组合使用。

LastAdapter - Don't write a RecyclerView adapter again. Not even a ViewHolder!

  •    Kotlin

The list of items can be an ObservableList if you want to get the adapter automatically updated when its content changes, or a simple List if you don't need to use this feature. The LayoutHandler interface allows you to use different layouts based on more complex criteria. Its one single method receives the item and the position and returns the layout resource id.

RecyclerView-FastScroller - A fully customizable Fast Scroller for the RecyclerView in Android, written in Kotlin and 100% compatible with Java only projects

  •    Kotlin

As Kotlin compiles to Java, there's no need to externally add the Kotlin runtime or any other Kotlin dependencies when using this. Also the library is 100% compatible with Java and requires no migration of the base project to Kotlin. To reflect the item on the index of the top-most visible item, make the adapter implement the OnPopupTextUpdate interface, which overrides the method onChange(int index) which passes the index of the element whose info needs to be displayed in the popup.

sectioned-recyclerview - Implement a multi-sectioned RecyclerView using a custom adapter interface

  •    Java

Sectioned RecyclerView allows you to easily split a RecyclerView into sections with headers and optional footers. Headers can be expanded and collapsed, you can even hide empty sections.The Gradle dependency is available via jCenter. jCenter is the default Maven repository used by Android Studio.

RecyclerViewTemplate - One Template which solves all frequently used RecyclerViews Code Snippets

  •    FreeMarker

The main purpose of this repo is to reduce the boiler plate code used in RecylerView's for different views and use cases. Yeah! All you have to just mark the fields in the template wizards. Now, you're good to go. This template supports RecyclerView customziations like list, grid, header, footer, header-footer, toggle, checkbox, radio, google play like RecyclerView and Section RecyclerView.

MultiViewAdapter - Recyclerview Adapter library to create composable view holders

  •    Java

Helper library for recyclerviews to create composable view holders without boilerplate code. The Gradle dependency is available via JCenter. JCenter is the default maven repository used by Android Studio.

Graywater - An Android library for decomposing RecyclerView layouts to improve scroll performance.

  •    Java

Graywater is a RecyclerView adapter that facilitates the performant decomposition of complex and varied list items. It does this by mapping large data models to multiple viewholders, splitting the work needed to create a complex list item over multiple frames. The concept is based off of Facebook's post on a faster news feed and Components for Android, which have been realized as Litho.

android-advancedrecyclerview - RecyclerView extension library which provides advanced features

  •    Java

This RecyclerView extension library provides Google's Inbox app like swiping, Play Music app like drag-and-drop sorting and expandable item features. Works on API level 14 or later. This library is published on jCenter. Just add these lines to build.gradle.

RecyclerItemDecoration - ItemDecoration for RecyclerView using LinearLayoutManager for Android

  •    Java

When using recyclerView with different ViewType, you either have only one simple divider or different types of dividers. When you want to draw different dividers between recyclerView's items, basically you must consider items' position; often you need to have separate ItemDecoration's behaviors declared in your code using switch cases or if statements. For example, each time items' position changes happen, you must rewrite ItemDecoration's behaviors.

SectionedRecyclerViewAdapter - An Adapter that allows a RecyclerView to be split into Sections with headers and/or footers

  •    Java

An Adapter that allows a RecyclerView to be split into Sections with headers and/or footers. In addition, each Section can have its state(Loading/Loaded/Failed/Empty) controlled individually.

RecyclerViewHeader - Super fast and easy way to create header for Android RecyclerView

  •    Java

Super fast and easy way to create header for Android RecyclerView. Lets you create header View for any RecyclerView that uses LinearLayoutManager or GridLayoutManager with just a simple method call.

MultiSnapRecyclerView - Android library for multiple snapping of RecyclerView

  •    Java

This is an Android Library for multiple snapping of RecyclerView. MultiSnapRecyclerView easily provides a snapping feature to your recycler view. What this does are clean, neat, and powerful. Make sure to use LinearManger. Other managers are not supported.





We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.