Discrete Scroll View
I am using Android Discrete Scroll View library, Recycler View-based implementation of a scrollable list, where current item is centered and can be changes using swipes.
The issue here is I am able to display only one picture at a time. But I need two off screen items to be visible.
- scrollView.setOrientation(Orientation.VERTICAL); //Sets an orientation of the view
- scrollView.setOffscreenItems(count); //Reserve extra space equal to (childSize * count) on each side of the view
I would like to know the description for second point.
Can anyone help me. Thanks in advance.