コード例 #1
0
 @Override
 public void onStopNestedScroll(View target) {
   mNestedScrollingParentHelper.onStopNestedScroll(target);
   mNestedScrollInProgress = false;
   touchUp(null);
   stopNestedScroll();
 }
コード例 #2
0
 @Override
 public void onNestedScrollAccepted(View child, View target, int axes) {
   // Reset the counter of how much leftover scroll needs to be consumed.
   mNestedScrollInProgress = true;
   mNestedScrollingParentHelper.onNestedScrollAccepted(child, target, axes);
   // Dispatch up to the nested parent
   startNestedScroll(axes & ViewCompat.SCROLL_AXIS_VERTICAL);
 }
コード例 #3
0
 @Override
 public void onStopNestedScroll(View target) {
   mNestedScrollingParentHelper.onStopNestedScroll(target);
   // Finish the spinner for nested scrolling if we ever consumed any
   // unconsumed nested scroll
   if (mTotalUnconsumed > 0) {
     finishSpinner(mTotalUnconsumed);
     mTotalUnconsumed = 0;
   }
   // Dispatch up our nested parent
   stopNestedScroll();
 }
コード例 #4
0
 @Override
 public int getNestedScrollAxes() {
   return mNestedScrollingParentHelper.getNestedScrollAxes();
 }
コード例 #5
0
 @Override
 public void onNestedScrollAccepted(View child, View target, int axes) {
   // Reset the counter of how much leftover scroll needs to be consumed.
   mNestedScrollingParentHelper.onNestedScrollAccepted(child, target, axes);
   mTotalUnconsumed = 0;
 }