Home | History | Annotate | Download | only in ui

Lines Matching refs:velocity

263      * @param velocity The desired pixels/second speed at which the view should
266 private void dismissChild(final SwipeableItemView view, float velocity) {
269 float newPos = determinePos(animView, velocity);
270 int duration = determineDuration(animView, newPos, velocity);
293 private static int determineDuration(View animView, float newPos, float velocity) {
295 if (velocity != 0) {
299 .abs(velocity)));
306 private float determinePos(View animView, float velocity) {
308 if (velocity < 0 || (velocity == 0 && animView.getTranslationX() < 0)
310 || (velocity == 0 && animView.getTranslationX() == 0 && mSwipeDirection == Y)) {
406 float velocity = getVelocity(mVelocityTracker);
419 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity)
420 && (Math.abs(velocity) > Math.abs(perpendicularVelocity))
421 && (velocity > 0) == (mCurrAnimView.getTranslationX() > 0)
424 LogUtils.v(TAG, "Swipe/Dismiss: " + velocity + "/" + escapeVelocity + "/"
433 dismissChild(mCurrView, childSwipedFastEnough ? velocity : 0f);