title: ViewPager onPageScrolled event not called
body: <p>The following code scrolls the 4 pages just fine.  My problem is that the <code>onPageScrolled</code> event does not get triggered when the pages are scrolled.  This occurs whether or not I use the <code>myPager.SetOffsccreenPageLimit(4)</code> command.  After reading the docs, it is my understanding that when I have <code>implements ViewPager.OnPageChangeListener</code> included in the <code>MyPagerAdapter</code> class that the event should be triggered. What am I doing wrong?</p>
  
  <p>Thanks,
  Gary Blakely</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      MyPagerAdapter adapter = new MyPagerAdapter();
      ViewPager myPager = (ViewPager) findViewById(R.id.mysevenpanelpager);
      myPager.setAdapter(adapter);
      myPager.setCurrentItem(0);
      myPager.setOffscreenPageLimit(4);
  }
  
  private class MyPagerAdapter extends PagerAdapter 
      implements ViewPager.OnPageChangeListener {
  
      public int getCount() {
          return 4;
      }
  
      public Object instantiateItem(View collection, int position) {
          LayoutInflater inflater = (LayoutInflater) collection.getContext()
              .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  
          int resId = 0;
          switch (position) {
          case 0:
              resId = R.layout.left;
              break;
          case 1:
              resId = R.layout.gps;
              break;
          case 2:
              resId = R.layout.map;
              break;
          case 3:
              resId = R.layout.right;
              break;
          }
  
          View view = inflater.inflate(resId, null);
  
          ((ViewPager) collection).addView(view, 0);
  
          return view;
      }
  
      @Override
      public void destroyItem(View arg0, int arg1, Object arg2) {
          ((ViewPager) arg0).removeView((View) arg2);
      }
      @Override
      public void onPageScrollStateChanged(int arg0) {
          int myint = 9;
          myint = myint * 2;
      }
  
      @Override
      public void onPageScrolled(int arg0, float arg1, int arg2) {
          int myint = 9;
          myint = myint * 2;
      }
  
      @Override
      public void onPageSelected(int arg0) {
          int myint = 9;
          myint = myint * 2;
      }
  }
  </code></pre>