Home
last modified time | relevance | path

Searched refs:fractionCovered (Results 1 – 4 of 4) sorted by relevance

/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/cardstream/
DDefaultCardStreamAnimator.java81 float fractionCovered = 1.f - (deltaXAbs / view.getWidth()); in getSwipeInAnimator() local
82 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor)); in getSwipeInAnimator()
105 float fractionCovered = 1.f - (deltaXAbs / view.getWidth()); in getSwipeOutAnimator() local
106 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor)); in getSwipeOutAnimator()
DCardStreamLinearLayout.java302 float fractionCovered = deltaXAbs / (float) child.getWidth(); in swipeView() local
305 child.setAlpha(1.f - fractionCovered); in swipeView()
308 child.setRotationY(-15.f * fractionCovered); in swipeView()
310 child.setRotationY(15.f * fractionCovered); in swipeView()
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DDefaultCardStreamAnimator.java.ftl81 float fractionCovered = 1.f - (deltaXAbs / view.getWidth());
82 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor));
105 float fractionCovered = 1.f - (deltaXAbs / view.getWidth());
106 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor));
DCardStreamLinearLayout.java.ftl302 float fractionCovered = deltaXAbs / (float) child.getWidth();
305 child.setAlpha(1.f - fractionCovered);
308 child.setRotationY(-15.f * fractionCovered);
310 child.setRotationY(15.f * fractionCovered);