Discrete Scroll View

Sindhuja K | 196 xp

Hi guys..

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.

  1. scrollView.setOrientation(Orientation.VERTICAL); //Sets an orientation of the view
  2. 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.