Home
last modified time | relevance | path

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

/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java99 float deltaXAbs = Math.abs(deltaX);
101 if (deltaXAbs > mSwipeSlop) {
109 v.setAlpha(1 - deltaXAbs / v.getWidth());
119 float deltaXAbs = Math.abs(deltaX);
124 if (deltaXAbs > v.getWidth() / 4) {
126 fractionCovered = deltaXAbs / v.getWidth();
132 fractionCovered = 1 - (deltaXAbs / v.getWidth());
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DDefaultCardStreamAnimator.java78 float deltaXAbs = Math.abs(deltaX); in getSwipeInAnimator() local
80 float fractionCovered = 1.f - (deltaXAbs / view.getWidth()); in getSwipeInAnimator()
102 float deltaXAbs = Math.abs(deltaX); in getSwipeOutAnimator() local
104 float fractionCovered = 1.f - (deltaXAbs / view.getWidth()); in getSwipeOutAnimator()
DCardStreamLinearLayout.java110 float deltaXAbs = Math.abs(deltaX);
113 boolean remove = deltaXAbs > v.getWidth() / 4 && !isFixedView(v);
300 float deltaXAbs = Math.abs(deltaX); in swipeView() local
301 float fractionCovered = deltaXAbs / (float) child.getWidth(); in swipeView()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java123 float deltaXAbs = Math.abs(deltaX);
125 if (deltaXAbs > mSwipeSlop) {
148 float deltaXAbs = Math.abs(deltaX);
152 if (deltaXAbs > v.getWidth() / 4) {
154 fractionCovered = deltaXAbs / v.getWidth();
159 fractionCovered = 1 - (deltaXAbs / v.getWidth());