Java Code Examples for com.nineoldandroids.animation.ValueAnimator#getAnimatedValue()
The following examples show how to use
com.nineoldandroids.animation.ValueAnimator#getAnimatedValue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LrcView.java From DMusic with Apache License 2.0 | 5 votes |
@Override public void onAnimationUpdate(ValueAnimator animation) { LrcView view = reference.get(); if (view == null || view.mContext == null || view.mContext instanceof Activity && ((Activity) view.mContext).isFinishing()) { return; } view.mTextOffsetX = (float) animation.getAnimatedValue(); view.invalidate(); }
Example 2
Source File: SweetView.java From AndroidSweetSheet with Apache License 2.0 | 5 votes |
@Override public void onAnimationUpdate(ValueAnimator animation) { int value = (int) animation.getAnimatedValue(); mArcHeight = value; if (value == mMaxArcHeight) { duang(); } invalidate(); }
Example 3
Source File: SweetView.java From MousePaint with MIT License | 5 votes |
@Override public void onAnimationUpdate(ValueAnimator animation) { int value = (int) animation.getAnimatedValue(); mArcHeight = value; if (value == mMaxArcHeight) { duang(); } invalidate(); }
Example 4
Source File: ContextualUndoAdapter.java From UltimateAndroid with Apache License 2.0 | 5 votes |
@Override public void onAnimationUpdate(final ValueAnimator valueAnimator) { ContextualUndoView dismissView = mParentAdapter.getViewBeingAnimated(); if (dismissView != null) { mLayoutParams.height = (Integer) valueAnimator.getAnimatedValue(); dismissView.setLayoutParams(mLayoutParams); } }
Example 5
Source File: ContextualUndoAdapter.java From android-open-project-demo with Apache License 2.0 | 5 votes |
@Override public void onAnimationUpdate(final ValueAnimator valueAnimator) { ContextualUndoView dismissView = mParentAdapter.getViewBeingAnimated(); if (dismissView != null) { mLayoutParams.height = (Integer) valueAnimator.getAnimatedValue(); dismissView.setLayoutParams(mLayoutParams); } }
Example 6
Source File: ContextualUndoAdapter.java From ALLGO with Apache License 2.0 | 4 votes |
@Override public void onAnimationUpdate(ValueAnimator valueAnimator) { mLayoutParams.height = (Integer) valueAnimator.getAnimatedValue(); mDismissView.setLayoutParams(mLayoutParams); }
Example 7
Source File: SwipeDismissTouchListener.java From ListViewAnimations with Apache License 2.0 | 4 votes |
@Override public void onAnimationUpdate(@NonNull final ValueAnimator animation) { ViewGroup.LayoutParams layoutParams = mView.getLayoutParams(); layoutParams.height = (Integer) animation.getAnimatedValue(); mView.setLayoutParams(layoutParams); }
Example 8
Source File: AnimateAdditionAdapter.java From ListViewAnimations with Apache License 2.0 | 4 votes |
@Override public void onAnimationUpdate(final ValueAnimator animation) { ViewGroup.LayoutParams layoutParams = mView.getLayoutParams(); layoutParams.height = (Integer) animation.getAnimatedValue(); mView.setLayoutParams(layoutParams); }