a common tool class for decoration of RecyclerView,support ninepatch image.
Documents are here Wiki
You can import this lib with gradle or maven because it exists on JCenter.
More expandable useful methods will be shown in ExpandRecyclerView lib. This lib will be combine into ExpandRecyclerView lib.
If you don't want to use ExpandRecyclerView lib, no worry, you can still use this lib.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.arjinmc:RecyclerViewDecoration:4.1.1'
}
compile 'com.arjinmc.android:recyclerviewdecoration:4.1.1'
<dependency>
<groupId>com.arjinmc.android</groupId>
<artifactId>recyclerviewdecoration</artifactId>
<version>4.1.1</version>
<type>pom</type>
</dependency>
All built by Builer().
- RecyclerViewLinearItemDecoration
- RecyclerViewLinearSpaceItemDecoration
- RecyclerViewGridItemDecoration
- RecyclerViewGridSpaceItemDecoration
- RecyclerViewStickyHeadItemDecoration reference to https://github.com/chenpengfei88/StickyItemDecoration