All Projects → zhukic → Sectioned Recyclerview

zhukic / Sectioned Recyclerview

Licence: apache-2.0
Simple Android library that allows you to easily split your RecyclerView into expanding/collapsing sections with headers.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Sectioned Recyclerview

Reel Search Android
Reel Search for Android is a UI/UX design for autocomplete action. It is a beautiful minimalistic addition to any use case.
Stars: ✭ 110 (-14.73%)
Mutual labels:  recyclerview
Swipemenulayout
🔥一个零耦合的侧滑菜单,支持RecyclerView、ListView、GridView等不同条目布局,支持菜单在左或在右,可选滑动阻塞,是否禁用等功能
Stars: ✭ 120 (-6.98%)
Mutual labels:  recyclerview
Carouselrecyclerview
Carousel Recyclerview let's you create carousel layout with the power of recyclerview by creating custom layout manager.
Stars: ✭ 107 (-17.05%)
Mutual labels:  recyclerview
Jkcardlayout
高仿即刻APP探索页卡片布局拖拽、卡片前进、回退和下拉效果,采用RecyclerView和自定义LayoutManager实现
Stars: ✭ 111 (-13.95%)
Mutual labels:  recyclerview
Flingappbarlayout
A custom AppBarLayout that can fling smoothly
Stars: ✭ 117 (-9.3%)
Mutual labels:  recyclerview
Recyclerview
How to use a recyclerview
Stars: ✭ 121 (-6.2%)
Mutual labels:  recyclerview
Expandablerecyclerview
Custom RecyclerView#Adapter that implement features like ExpandableListView
Stars: ✭ 107 (-17.05%)
Mutual labels:  recyclerview
Xrefreshlayout
【已过时,不再更新,请使用更强大的SmartRefreshLayout!】A refresh layout(无侵入下拉刷新和加载布局), can refresh RecyclerView for all LayoutManager, NestedScrollView。
Stars: ✭ 127 (-1.55%)
Mutual labels:  recyclerview
Imagezoom
An Android library that makes any view to be zoomable.
Stars: ✭ 118 (-8.53%)
Mutual labels:  recyclerview
Todolist
Micro-Transitions for Smooth Android To-Do List Animations
Stars: ✭ 1,582 (+1126.36%)
Mutual labels:  recyclerview
Kotlin Playground
Kotlin practice
Stars: ✭ 111 (-13.95%)
Mutual labels:  recyclerview
Poweradapter
Adapter for RecyclerView(only 21KB).RecyclerView万能适配器(仅21KB)
Stars: ✭ 112 (-13.18%)
Mutual labels:  recyclerview
Easyadapter
Recyclerview adapter library- Create adapter in just 3 lines of code
Stars: ✭ 122 (-5.43%)
Mutual labels:  recyclerview
Pull To Make Soup
Custom animated pull-to-refresh that can be easily added to RecyclerView
Stars: ✭ 1,443 (+1018.6%)
Mutual labels:  recyclerview
Recyclerbanner
用RecyclerView实现无限轮播图,有普通版和3d版
Stars: ✭ 1,600 (+1140.31%)
Mutual labels:  recyclerview
Vue Recyclerview
Mastering Large Lists with the vue-recyclerview
Stars: ✭ 1,442 (+1017.83%)
Mutual labels:  recyclerview
Baserecyclerviewadapter
⚡ Fast way to bind RecyclerView adapter and ViewHolder for implementing clean sections.
Stars: ✭ 120 (-6.98%)
Mutual labels:  recyclerview
Fullrecyclerview
This is a compilation of different kinds and actions in recyclerView
Stars: ✭ 127 (-1.55%)
Mutual labels:  recyclerview
Recyclerview Animators
An Android Animation library which easily add itemanimator to RecyclerView items.
Stars: ✭ 10,916 (+8362.02%)
Mutual labels:  recyclerview
Greedo Layout For Android
Full aspect ratio grid LayoutManager for Android's RecyclerView
Stars: ✭ 1,588 (+1131.01%)
Mutual labels:  recyclerview

SectionedRecyclerView

Build Status Download

A simple Android library that allows you to easily split your RecyclerView into expanding/collapsing sections with headers.

Screenshots Screenshots

Setup

The Gradle dependency is available via jCenter.

Add this to your build.gradle file.

implementation 'com.github.zhukic:sectioned-recyclerview:1.2.3'

How it works

The main idea of the library is to determine whether to place a subheader between a pair of neighboring items. To do this, you need to implement the onPlaceSubheaderBetweenItems method, which returns true when you need to place a subheader between two neighboring items, false - otherwise.

@Override
public boolean onPlaceSubheaderBetweenItems(int position) {
    final char movieTitleFirstCharacter = movieList.get(position).getTitle().charAt(0);
    final char nextMovieTitleFirstCharacter = movieList.get(position + 1).getTitle().charAt(0);
    
    //The subheader will be placed between two neighboring items if the first characters in movie titles are different.
    return movieTitleFirstCharacter != nextMovieTitleFirstCharacter;
}

Sample

Please try out sample app for more details. Or:

Grid

If you are using a GridLayoutManager set it to adapter.

GridLayoutManager gridLayoutManager = new GridLayoutManager(getContext(), 2);
sectionedRecyclerAdapter.setGridLayoutManager(gridLayoutManager);

Screenshots

License

Copyright 2016 Vladislav Zhukov

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 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].