Android : Implementation of two way Endless Viewpager
<h3>What I want:</h3> 

<p>I have been trying to implement <strong>two directional Endless viewpager</strong> in Android, <strong>Left to Right</strong> &amp; <strong>Right to Left</strong></p>

<h3>What I did:</h3>

<p>I have implemented <strong>Endless viewpager adapter</strong>, it works fine for right to left direction, I have set current item position by <code>viewPager.setCurrentItem(Integer.MAX_VALUE/2);</code>.</p>

<h3>Reference:</h3>

<p><a href="https://i.stack.imgur.com/zVqg4.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/zVqg4.gif" alt="enter image description here"></a></p>

<p>Help would be appreciate. </p>