Lines Matching refs:velocity
295 * @param velocity The desired pixels/second speed at which the view should move
297 public void dismissChild(final View view, float velocity) {
298 dismissChild(view, velocity, null, 0, false, 0);
303 * @param velocity The desired pixels/second speed at which the view should move
309 public void dismissChild(final View view, float velocity, final Runnable endAction,
316 if (velocity < 0
317 || (velocity == 0 && getTranslation(animView) < 0)
319 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y)
321 || (velocity == 0 && getTranslation(animView) == 0 && isLayoutRtl)) {
329 if (velocity != 0) {
332 .abs(velocity))
369 public void snapChild(final View view, float velocity) {
443 float velocity = getVelocity(mVelocityTracker);
449 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) &&
450 (Math.abs(velocity) > Math.abs(perpendicularVelocity)) &&
451 (velocity > 0) == (getTranslation(mCurrAnimView) > 0);
461 dismissChild(mCurrView, childSwipedFastEnough ? velocity : 0f);
465 snapChild(mCurrView, velocity);