Searched refs:endX (Results 1 – 4 of 4) sorted by relevance
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/ |
D | ListViewItemAnimations.java | 150 float endX; 155 endX = deltaX < 0 ? -v.getWidth() : v.getWidth(); 160 endX = 0; 165 animateSwipe(v, endX, duration, remove); 185 private void animateSwipe(final View view, float endX, long duration, final boolean remove) { in animateSwipe() argument 190 alpha(remove ? 0 : 1).translationX(endX). in animateSwipe() 209 TranslateAnimation swipeAnim = new TranslateAnimation(mCurrentX, endX, 0, 0); in animateSwipe() 327 private void moveView(View view, float startX, float endX, float startY, float endY, in moveView() argument 332 if (startX != endX) { in moveView() 333 … ObjectAnimator anim = ObjectAnimator.ofFloat(view, View.TRANSLATION_X, startX, endX); in moveView() [all …]
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | DefaultCardStreamAnimator.java | 100 float endX; in getSwipeOutAnimator() local 108 endX = deltaX < 0 ? -view.getWidth() : view.getWidth(); in getSwipeOutAnimator() 117 PropertyValuesHolder.ofFloat("translationX", endX), in getSwipeOutAnimator()
|
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/ |
D | AnimatedNotificationDisplayActivity.java | 73 float endX = -mRandom.nextInt(mAnimationRange); in createNextAnimation() local 75 float distance = (float) Math.sqrt(Math.pow(endX - startX, 2) + Math.pow(endY - startY, 2)); in createNextAnimation() 78 PropertyValuesHolder.ofFloat("translationX", startX, endX), in createNextAnimation()
|
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/ |
D | ListViewRemovalAnimation.java | 121 float endX; 127 endX = deltaX < 0 ? -v.getWidth() : v.getWidth(); 133 endX = 0; 145 alpha(endAlpha).translationX(endX).
|