title: Slowing speed of Viewpager controller in android
body: <p>Is there any way to slow the scroll speed with the viewpager adaptor in android?</p>
  
  <hr>
  
  <p>You know, I've been looking at this code. I can't figure out what I'm dong wrong.</p>
  
  <pre><code>try{ 
      Field mScroller = mPager.getClass().getDeclaredField("mScroller"); 
      mScroller.setAccessible(true); 
      Scroller scroll = new Scroller(cxt);
      Field scrollDuration = scroll.getClass().getDeclaredField("mDuration");
      scrollDuration.setAccessible(true);
      scrollDuration.set(scroll, 1000);
      mScroller.set(mPager, scroll);
  }catch (Exception e){
      Toast.makeText(cxt, "something happened", Toast.LENGTH_LONG).show();
  } 
  </code></pre>
  
  <p>It doesn't change anything yet no exceptions occur?</p>