Sticky-LayoutManager

An android recyclerView sticky item view layout manager library.

Image Image Image
Sticky-LayoutManagerz Sticky-LayoutManagerc Sticky-LayoutManager

Download Demo Apk

apk
apkqrcode

How to

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
	implementation 'com.github.qiujayen:sticky-layoutmanager:last-version'
}

This library dependencies

implementation 'com.android.support:recyclerview-v7:version code'

How to use StickyLayoutManager?

class RecyclerView.Adapter implements StickyHeaders {
  public boolean isStickyHeader(int position) {
    // Implement this method
  }
}
RecyclerView.setLayoutManager(new StickyHeaders...xxx...LayoutManager<RecyclerView.Adapter & StickyHeaders>());

GitHub