title: Scroll gallery to next page
body: <p>Using a widget.Gallery to display a horizontally scrolling list of items. I've implemented paging in the gallery with what seems to be the standard technique: subclass Gallery and implement:</p>
  
  <pre><code>@Override
  public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
          if (velocityX&gt;0) {
              onKeyDown(KeyEvent.KEYCODE_DPAD_LEFT, null);
          } else {
              onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, null);
          }
  }
  </code></pre>
  
  <p>When tapping the gallery, I fade up next and previous image buttons. When clicking these, I want the gallery to animated to the next/previous page, respectively. I've tried calling onKeyDown from my next-button handler, but strangely this has no effect.
  AbsSpinner has <code>setSelection(int position, boolean animate)</code> but animate is ignored in Gallery.</p>