Пример #1
0
 public void onScroll(int distance) { // 杞瓙杞姩杩囩▼涓�
   doScroll(distance);
   int height = getHeight();
   if (scrollingOffset > height) {
     scrollingOffset = height;
     scroller.stopScrolling();
   } else if (scrollingOffset < -height) {
     scrollingOffset = -height;
     scroller.stopScrolling();
   }
 }
Пример #2
0
 /** Stops scrolling */
 public void stopScrolling() {
   scroller.stopScrolling();
 }