I would like to make a horizontal RecyclerView like this: (ignore white circle in the centre)
Here the major things are scaling the center item and scaling the outgoing item as well. Can I have some reference point as how can I achieve such a view?
I would like to make a horizontal RecyclerView like this: (ignore white circle in the centre)
Here the major things are scaling the center item and scaling the outgoing item as well. Can I have some reference point as how can I achieve such a view?
You can use below library for this I have already use this library for same
https://github.com/Azoft/CarouselLayoutManager
Add CarouselLayoutManager and set recycler view property as per below
CarouselLayoutManager layoutManager = new CarouselLayoutManager(CarouselLayoutManager.HORIZONTAL, true);
layoutManager.setPostLayoutListener(new CarouselZoomPostLayoutListener());
yourAdapter = new YourAdapter(arrayList, context);
binding.rvGame.setLayoutManager(layoutManager);
binding.rvGame.setHasFixedSize(true);
binding.rvGame.setAdapter(yourAdapter);
binding.rvGame.addOnScrollListener(new CenterScrollListener());
I hope this can help you!
Thank You.