Simple in usage Recycler Layout Manager with circular item positioning
CircularLayoutManager
Simple in usage Recycler Layout Manager with circular item positioning.
Usage
Register configuration providers like this:
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
circularRecycler.layoutManager = CircularRecyclerLayoutManager()
circularRecycler.adapter = Adapter()
}
}
Installation
- Add this to your project level
build.gradle
:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
- Add this to your app's
build.gradle
:
implementation 'com.github.leshchenko:CircularLayoutManager:1.0.1'