SectionedRecyclerView alternatives and similar packages
Based on the "Recyclerview Widget" category.
Alternatively, view SectionedRecyclerView alternatives based on common mentions on social networks and blogs.
-
recyclerview-animators
An Android Animation library which easily add itemanimator to RecyclerView items. -
UltimateRecyclerView
A RecyclerView(advanced and flexible version of ListView in Android) with refreshing,loading more,animation and many other features. -
android-advancedrecyclerview
RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting) -
XRecyclerView
A RecyclerView that implements pullrefresh and loadingmore featrues.you can use it like a standard RecyclerView -
sticky-headers-recyclerview
[UNMAINTAINED] Sticky Headers decorator for Android's RecyclerView -
RecyclerView-FlexibleDivider
Android library providing simple way to control divider items (ItemDecoration) of RecyclerView -
ScrollablePanel
A flexible view for providing a limited rect window into a large data set,just like a two-dimensional RecyclerView. It different from RecyclerView is that it's two-dimensional(just like a Panel) and it pin the itemView of first row and first column in their original location. -
RecyclerViewHeader
Super fast and easy way to create header for Android RecyclerView -
RecyclerViewEnhanced
Android Library to provide swipe, click and other functionality to RecyclerView -
header-decor
A couple of sticky header decorations for android's recycler view. -
LastAdapter
Don't write a RecyclerView adapter again. Not even a ViewHolder! -
Dividers
Dividers is a simple Android library to create easy separators for your RecyclerViews -
RecyclerView-MultipleViewTypesAdapter
Android library defining adapter classes of RecyclerView to manage multiple view types -
RecyclerViewSwipeDismiss
A very easy-to-use and non-intrusive implement of Swipe to dismiss for RecyclerView. -
RecyclerItemDecoration
ItemDecoration for RecyclerView using LinearLayoutManager for Android -
DynamicRecyclerView
Set of plugable extenstions for Android RecyclerView -
PowerfulRecyclerViewAdapter
A Common RecyclerView.Adapter implementation which supports all kind of items and has useful data operating APIs such as remove,add,etc. -
NoPaginate
Android pagination library (updated 01.05.2018) -
recyclerview-binder
Android library for RecyclerView to manage order of items and multiple view types. -
CircularLayoutManager
Custom Layout Manager for Recycler View -
KidAdapter
kotlin dsl for kids to simplify RecyclerView.Adapter logic -
InfiniteRecyclerView
A RecyclerView Adapter which allows you to have an Infinite scrolling list in your apps -
VsRecyclerView
The library that removes all boilerplate code allowing you to display lists with few lines of code. -
android RecyclerView support Header Footer and Empty list
android RecyclerView support Header Footer and Empty list -
RollerTrack
A navigational roller track companion for RecyclerView lists -
Infinite scroll functionality for recycler views
Infinite scroll functionality for recycler views
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SectionedRecyclerView or a related project?
README
⚠ This library is no longer maintained ⚠️
SectionedRecyclerView

An adapter to create Android RecyclerViews with sections, providing headers and footers.
Usage
In order to use this library, you need to extend SectionedRecyclerView<H, VH, F>
where:
H
is a class extendingRecyclerView.ViewHolder
to hold the view for section headers.VH
is a class extendingRecyclerView.ViewHolder
to hold the view for the regular items in the view.F
is a class extendingRecyclerView.ViewHolder
to hold the view for section footers.
According to the sample published in this repository:
- 1. Create a class extending
SectionedRecyclerView
:
public class CountSectionAdapter extends SectionedRecyclerViewAdapter<CountHeaderViewHolder,
CountItemViewHolder,
CountFooterViewHolder>
- 2. Implement the corresponding methods:
@Override
protected int getItemCountForSection(int section) {
return section + 1;
}
@Override
protected int getSectionCount() {
return 5;
}
@Override
protected boolean hasFooterInSection(int section) {
return true;
}
protected LayoutInflater getLayoutInflater(){
return LayoutInflater.from(context);
}
@Override
protected CountHeaderViewHolder onCreateSectionHeaderViewHolder(ViewGroup parent, int viewType) {
View view = getLayoutInflater().inflate(R.layout.view_count_header, parent, false);
return new CountHeaderViewHolder(view);
}
@Override
protected CountFooterViewHolder onCreateSectionFooterViewHolder(ViewGroup parent, int viewType) {
View view = getLayoutInflater().inflate(R.layout.view_count_footer, parent, false);
return new CountFooterViewHolder(view);
}
@Override
protected CountItemViewHolder onCreateItemViewHolder(ViewGroup parent, int viewType) {
View view = getLayoutInflater().inflate(R.layout.view_count_item, parent, false);
return new CountItemViewHolder(view);
}
@Override
protected void onBindSectionHeaderViewHolder(CountHeaderViewHolder holder, int section) {
holder.render("Section " + (section + 1));
}
@Override
protected void onBindSectionFooterViewHolder(CountFooterViewHolder holder, int section) {
holder.render("Footer " + (section + 1));
}
protected int[] colors = new int[]{0xfff44336, 0xff2196f3, 0xff009688, 0xff8bc34a, 0xffff9800};
@Override
protected void onBindItemViewHolder(CountItemViewHolder holder, int section, int position) {
holder.render(String.valueOf(position + 1), colors[section]);
}
- 3. If you use a
GridLayoutManager
, you need to set it aSectionedSpanSizeLookup
to make sure that headers and footers span the whole width of theRecyclerView
:
GridLayoutManager layoutManager = new GridLayoutManager(this, 2);
SectionedSpanSizeLookup lookup = new SectionedSpanSizeLookup(adapter, layoutManager);
layoutManager.setSpanSizeLookup(lookup);
recycler.setLayoutManager(layoutManager);
- 4. Your result will look like this:
[SectionedRecyclerView screenshot][1]
Even simpler
Most times you will need a simpler version of this adapter, where there are no footers and your headers will only be a title. For those cases, you have SimpleSectionedAdapter<VH>
, where VH
is a class extending ViewHolder
to hold the view of the regular items in your RecyclerView
.
In this case, you will have to implement the following methods:
@Override
protected String getSectionHeaderTitle(int section) {
return section == 0 ? "Today" : "Tomorrow";
}
@Override
protected int getSectionCount() {
return 2;
}
@Override
protected int getItemCountForSection(int section) {
return 3;
}
@Override
protected AgendaItemViewHolder onCreateItemViewHolder(ViewGroup parent, int viewType) {
LayoutInflater inflater = LayoutInflater.from(parent.getContext());
View view = inflater.inflate(R.layout.view_agenda_item, parent, false);
return new AgendaItemViewHolder(view);
}
protected String[][] agenda = {{"Meeting", "Phone call", "Interview"},
{"Basket match", "Grocery shopping", "Taking a nap"}};
@Override
protected void onBindItemViewHolder(AgendaItemViewHolder holder, int section, int position) {
holder.render(agenda[section][position]);
}
Your result will look like this:
[SimpleSectionedAdapter screenshot][2]
Get it!
SectionedRecyclerView
is available through JCenter. To be able to use this library in your project, add the following dependency to your build.gradle
file:
dependencies{
compile 'com.truizlop.sectionedrecyclerview:library:1.2.0'
}
License
Copyright 2015 Tomás Ruiz-López
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.
*Note that all licence references and agreements mentioned in the SectionedRecyclerView README section above
are relevant to that project's source code only.