Carousel Recycler view for Android

Carousel Recycler view

The CenterZoomLayoutManager is designed to give a centered and zoomed-in effect to the items in a RecyclerView. It achieves this by scaling the items based on their position in the RecyclerView. Items in the center of the screen are scaled up, while items at the top and bottom of the screen are scaled down.

One of the benefits of using the CenterZoomLayoutManager is that it can enhance the visual appeal of your app’s user interface. It can make your app look more dynamic and engaging by drawing the user’s attention to the centered and zoomed-in items.

In conclusion, the CenterZoomLayoutManager is a useful library for Android developers who want to create visually stunning and interactive RecyclerViews. It offers a unique scrolling behavior that can improve the user experience of your app and make it stand out from the competition.


How to Install

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 '' }

Step 2. Add the dependency

dependencies {
	  implementation 'com.github.DevenDeveloper:Carousel_RecyclerView:1.1.0'


val images: MutableList<ModelImages> = ArrayList()
images.add(ModelImages(1, "", ",70"))
images.add(ModelImages(2, "", ""))
images.add(ModelImages(3, "", ""))
images.add(ModelImages(4, "", ""))
images.add(ModelImages(4, "", ""))

val layoutManager: RecyclerView.LayoutManager = CenterZoomLayoutManager(
	this, LinearLayoutManager.HORIZONTAL,

recyclerView.scrollToPosition(images.size / 2)
val snapHelper: SnapHelper = LinearSnapHelper()
recyclerView.layoutManager = layoutManager
recyclerView.adapter = ImageAdapter(this, images)


View Github

Leave a Reply

Your email address will not be published. Required fields are marked *