MotionEvent e1 = MotionEvent.obtain(
SystemClock.uptimeMillis(),
SystemClock.uptimeMillis(),
MotionEvent.ACTION_DOWN, 89.333336f, 265.33334f, 0);
MotionEvent e2 = MotionEvent.obtain(
SystemClock.uptimeMillis(),
SystemClock.uptimeMillis(),
MotionEvent.ACTION_UP, 300.0f, 238.00003f, 0);

gallery.onFling(e1, e2, -800, 0);

http://stackoverflow.com/questions/5006228/smoothly-scroll-to-specified-position-in-android-gallery

相关文章:

  • 2021-11-10
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-12-06
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-12
相关资源
相似解决方案