Home
last modified time | relevance | path

Searched refs:deltaX (Results 1 – 18 of 18) sorted by relevance

/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DCardStreamAnimator.java73 public abstract ObjectAnimator getSwipeInAnimator(View view, float deltaX, float deltaY); in getSwipeInAnimator() argument
84 public abstract ObjectAnimator getSwipeOutAnimator(View view, float deltaX, float deltaY); in getSwipeOutAnimator() argument
107 public ObjectAnimator getSwipeInAnimator(View view, float deltaX, float deltaY) { in getSwipeInAnimator() argument
112 public ObjectAnimator getSwipeOutAnimator(View view, float deltaX, float deltaY) { in getSwipeOutAnimator() argument
DCardStreamLinearLayout.java92 float deltaX = x - mDownX;
95 if (!mSwiping && isSwiping(deltaX, deltaY)) {
99 swipeView(v, deltaX, deltaY);
109 float deltaX = x - mDownX;
111 float deltaXAbs = Math.abs(deltaX);
116 handleViewSwipingOut(v, deltaX, deltaY);
118 handleViewSwipingIn(v, deltaX, deltaY);
272 protected boolean isSwiping(float deltaX, float deltaY) { in isSwiping() argument
280 float absDeltaX = Math.abs(deltaX); in isSwiping()
296 protected void swipeView(View child, float deltaX, float deltaY) { in swipeView() argument
[all …]
DDefaultCardStreamAnimator.java77 public ObjectAnimator getSwipeInAnimator(View view, float deltaX, float deltaY){ in getSwipeInAnimator() argument
79 float deltaXAbs = Math.abs(deltaX); in getSwipeInAnimator()
98 public ObjectAnimator getSwipeOutAnimator(View view, float deltaX, float deltaY){ in getSwipeOutAnimator() argument
103 float deltaXAbs = Math.abs(deltaX); in getSwipeOutAnimator()
108 endX = deltaX < 0 ? -view.getWidth() : view.getWidth(); in getSwipeOutAnimator()
109 if (deltaX > 0) in getSwipeOutAnimator()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java122 float deltaX = x - mDownX;
123 float deltaXAbs = Math.abs(deltaX);
132 setSwipePosition(v, deltaX);
147 float deltaX = x - mDownX;
148 float deltaXAbs = Math.abs(deltaX);
155 endX = deltaX < 0 ? -v.getWidth() : v.getWidth();
238 private void setSwipePosition(View view, float deltaX) { in setSwipePosition() argument
239 float fraction = Math.abs(deltaX) / view.getWidth(); in setSwipePosition()
241 view.setTranslationX(deltaX); in setSwipePosition()
245 TranslateAnimation swipeAnim = new TranslateAnimation(deltaX, deltaX, 0, 0); in setSwipePosition()
[all …]
/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
DCurvedMotion.java71 int deltaX = left - oldLeft; in onCreate()
76 path.moveTo(-deltaX, -deltaY); in onCreate()
77 path.curveTo(-(deltaX/2), -deltaY, 0, -deltaY/2, 0, 0); in onCreate()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java98 float deltaX = x - mDownX;
99 float deltaXAbs = Math.abs(deltaX);
118 float deltaX = x - mDownX;
119 float deltaXAbs = Math.abs(deltaX);
127 endX = deltaX < 0 ? -v.getWidth() : v.getWidth();
/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/
DPlayerSetupActivity.java165 float deltaX = oldLocationInWindow[0] - locationInWindow[0]; in buttonClick()
168 buttonCopy.setTranslationX(deltaX); in buttonClick()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTouchPaint.java359 private void moveTrackball(float deltaX, float deltaY) { in moveTrackball() argument
363 mCurX = Math.max(Math.min(mCurX + deltaX, curW - 1), 0); in moveTrackball()
/development/samples/training/InteractiveChart/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/EffectiveNavigation/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/ContactsList/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/ControllerSample/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/basic/ActivityLifecycle/libs/
Dandroid-support-v13.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/NavigationDrawer/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/basic/FragmentBasics/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/location-aware/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/AnimationsDemo/libs/
Dandroid-support-v13.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/multiscreen/newsreader/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...