/** * Start scrolling by providing a starting point and the distance to travel. * * @param startX Starting horizontal scroll offset in pixels. Positive numbers will scroll the * content to the left. * @param startY Starting vertical scroll offset in pixels. Positive numbers will scroll the * content up. * @param dx Horizontal distance to travel. Positive numbers will scroll the content to the left. * @param dy Vertical distance to travel. Positive numbers will scroll the content up. * @param duration Duration of the scroll in milliseconds. */ public void startScroll(int startX, int startY, int dx, int dy, long startTime, int duration) { mMode = SCROLL_MODE; mScrollerX.startScroll(startX, dx, startTime, duration); mScrollerY.startScroll(startY, dy, startTime, duration); }