Simple Example how to use HeaderItemDecoration from gist https://gist.github.com/filipkowicz/1a769001fae407b8813ab4387c42fcbd
Note that this project is simple as possible and do not cover all best practices. Only goal of this project is to show how to integrate HeaderItemDecoration into your projects.
All help welcomed 🙏 if you have any idea please clone and make PR 😊
have fun and happy coding 😃
compile 'com.filipkowicz.tools:header-item-decoration:0.8'
import com.filipkowicz.headeritemdecorator.HeaderItemDecoration
...
recyclerView.addItemDecoration(HeaderItemDecoration(this,
shouldFadeOutHeader = true
) {
// example check for header item
this@MainFragment.adapter.getItemViewType(it) == R.layout.header_layout
})