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.java79 float deltaXAbs = Math.abs(deltaX); in getSwipeInAnimator() local
81 float fractionCovered = 1.f - (deltaXAbs / view.getWidth()); in getSwipeInAnimator()
103 float deltaXAbs = Math.abs(deltaX); in getSwipeOutAnimator() local
105 float fractionCovered = 1.f - (deltaXAbs / view.getWidth()); in getSwipeOutAnimator()
DCardStreamLinearLayout.java111 float deltaXAbs = Math.abs(deltaX);
114 boolean remove = deltaXAbs > v.getWidth() / 4 && !isFixedView(v);
301 float deltaXAbs = Math.abs(deltaX); in swipeView() local
302 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());