public class Gallery extends AbsSpinner implements GestureDetector.OnGestureListener {
...
private int mDownTouchPosition;
...
}
source code:
Field f = AlignLeftGallery.class.getSuperclass().getDeclaredField("mDownTouchPosition");
f.setAccessible(true);
int position = f.getInt(this);