/ Layout

An android recyclerview sticky item view layout manager library

An android recyclerview sticky item view layout manager library

Sticky-LayoutManager

An android recyclerView sticky item view layout manager library.

Download Demo 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