title: Viewpager in Android
body: <p>How could i create <code>ViewPager</code> in <code>both direction</code>. Is it possible ? If it possible how could i implement it.</p>
  
  <p>I have created <code>viewpager</code> in single direction using the below code:</p>
  
  <pre><code>private void initialisePaging() {
  
          List&lt;Fragment&gt; fragments = new Vector&lt;Fragment&gt;();
          fragments.add(Fragment.instantiate(this, Fragment0.class.getName()));
          fragments.add(Fragment.instantiate(this, Fragment1.class.getName()));
          fragments.add(Fragment.instantiate(this, Fragment2.class.getName()));
          this.mPagerAdapter = new MyPagerAdapter(super.getSupportFragmentManager(), fragments);
  
          ViewPager pager = (ViewPager) super.findViewById(R.id.viewpager);
          pager.setAdapter(this.mPagerAdapter);
      }
  </code></pre>
  
  <p>Could anybody help me out..thanks!!</p>