APISonar


me.henrytao.smoothappbarlayout.base.Utils.log

> me > henrytao > smoothappbarlayout > base > Utils > log
me APIs henrytao APIs smoothappbarlayout APIs base APIs Utils APIs log APIs

Example 1
public boolean onNestedPreFling(CoordinatorLayout coordinatorLayout, AppBarLayout child, View target, float velocityX, float velocityY) {
    Utils.log("onNestedPreFling | %f | %f", velocityX, velocityY);
    return false;
  }
Example 2
public void onNestedScrollAccepted(CoordinatorLayout coordinatorLayout, AppBarLayout child, View directTargetChild, View target,
      int nestedScrollAxes) {
    Utils.log("onNestedScrollAccepted | %d", nestedScrollAxes);
    onNestedPreScroll(coordinatorLayout, child, target, 0, 0, null);
  }
Example 3
public void onNestedScroll(CoordinatorLayout coordinatorLayout, AppBarLayout child, View target, int dxConsumed, int dyConsumed,
      int dxUnconsumed, int dyUnconsumed) {
    Utils.log("onNestedScroll | %d | %d | %d | %d", dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed);
    if (dyUnconsumed < 0) {
      mIsPullDownFromTop = true;
    } else {
      mIsPullDownFromTop = false;
    }
  }
Example 4
public void onNestedPreScroll(CoordinatorLayout coordinatorLayout, AppBarLayout child, View target, int dx, int dy, int[] consumed) {
    Utils.log("onNestedPreScroll | %d | %d", dx, dy);

    vScrollTarget = getScrollTarget(target);
    initScrollTarget(coordinatorLayout, child);

    if (dy < 0 && mIsPullDownFromTop) {
      onScrollChanged(coordinatorLayout, child, vScrollTarget, 0, dy, true);
    }
  }
Example 5
protected void syncOffset(AppBarLayout child, int newOffset) {
    Utils.log("syncOffset | %d", newOffset);
    mIsCollapsed = newOffset == mCurrentOffset && mCurrentOffset != 0;
    setTopAndBottomOffset(newOffset);
    if (child instanceof SmoothAppBarLayout && ((SmoothAppBarLayout) child).mHaveChildWithInterpolator && mCoordinatorLayout != null) {
      mCoordinatorLayout.dispatchDependentViewsChanged(child);
    }
    dispatchOffsetUpdates(child, newOffset);
    mCurrentOffset = newOffset;
    child.setTag(R.id.tag_current_offset, mCurrentOffset);
  }