Home
last modified time | relevance | path

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

/development/samples/browseable/BatchStepSensor/src/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()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java120 float fractionCovered;
126 fractionCovered = deltaXAbs / v.getWidth();
132 fractionCovered = 1 - (deltaXAbs / v.getWidth());
142 long duration = (int) ((1 - fractionCovered) * SWIPE_DURATION);
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java149 float fractionCovered;
154 fractionCovered = deltaXAbs / v.getWidth();
159 fractionCovered = 1 - (deltaXAbs / v.getWidth());
164 long duration = (int) ((1 - fractionCovered) * SWIPE_DURATION);