Lines Matching refs:distance
133 * @param distance a ratio of a view's width, values are clamped to 0 >= x <= 1f;
135 public void setDragDismissDistance(float distance) {
136 mDragDismissThreshold = clamp(0f, distance, 1f);
140 * The minimum swipe distance before the view's alpha is modified.
142 * @param fraction the distance as a fraction of the view's width.
149 * The maximum swipe distance for the view's alpha is modified.
151 * @param fraction the distance as a fraction of the view's width.
289 final int distance = child.getLeft() - mOriginalCapturedViewLeft;
291 return Math.abs(distance) >= thresholdDistance;
350 final float distance = fraction(startAlphaDistance, endAlphaDistance, left);
351 ViewCompat.setAlpha(child, clamp(0f, 1f - distance, 1f));