Only one complete view(row) in display in recycler view

348 views Asked by At

I have a recycler view in which I have inflated a layout containing some textviews and an imageview. Everything works as expected but I am facing a little problem while scrolling.

I want a behaviour where if user scrolls up or down the complete row which is currently in display should move and the new row comes is displayed. Right now when I am scrolling both the rows are partially visible.

How to achieve such behaviour in Recyclerview in android?

I am attaching a screenshot of my app if you guys want I can also post my code.enter image description here

1

There are 1 answers

1
TrueKojo On

Try out this library by kaelaela:

https://github.com/kaelaela/VerticalViewPager