Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
wangweiqi23 committed May 22, 2018
1 parent bba4d1e commit 212fb95
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ private void animateFlingSpring(final CoordinatorLayout coordinatorLayout, final
mFlingAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
Log.i(TAG, "animate animateFlingSpring animation:" + animation.getAnimatedValue());
updateSpringHeaderHeight(coordinatorLayout, abl, (int) animation.getAnimatedValue());
}
});
Expand Down Expand Up @@ -363,15 +362,13 @@ int setHeaderTopBottomOffsetValue(CoordinatorLayout coordinatorLayout,
newOffset = newSpringOffset;
newSpringOffset = 0;
}
Log.i(TAG, "setHeaderTopBottomOffset 1-- bottom:" + appBarLayout.getBottom() + " newSpringOffset:" + newSpringOffset);
updateSpringOffsetByscroll(coordinatorLayout, appBarLayout, newSpringOffset);
consumed = getTopBottomOffsetForScrollingSibling() - originNew;
if (newSpringOffset >= 0)
return consumed;
}

if (mOffsetSpring > 0 && appBarLayout.getHeight() >= mNormalViewHeight && newOffset > 0) {
Log.i(TAG, "setHeaderTopBottomOffset 2-- bottom:" + appBarLayout.getBottom() + " type:" + type+" originNew:"+originNew);
consumed = updateSpringByScroll(coordinatorLayout, appBarLayout, type, originNew);
return consumed;
}
Expand All @@ -390,11 +387,9 @@ int setHeaderTopBottomOffsetValue(CoordinatorLayout coordinatorLayout,
coordinatorLayout.dispatchDependentViewsChanged(appBarLayout);
}
appBarLayout.dispatchOffsetUpdates(getTopAndBottomOffset());
Log.i(TAG, "setHeaderTopBottomOffset 3-- bottom:" + appBarLayout.getBottom() + " newOffset:" + newOffset+" curOffset:"+curOffset);
updateAppBarLayoutDrawableState(coordinatorLayout, appBarLayout, newOffset,
newOffset < curOffset ? -1 : 1, false);
} else if (curOffset != minOffset) {
Log.i(TAG, "setHeaderTopBottomOffset 4-- bottom:" + appBarLayout.getBottom() + " type:" + type+" originNew:"+originNew);
consumed = updateSpringByScroll(coordinatorLayout, appBarLayout, type, originNew);
}
} else {
Expand Down

0 comments on commit 212fb95

Please sign in to comment.