Java Code Examples for com.nineoldandroids.animation.Animator#end()
The following examples show how to use
com.nineoldandroids.animation.Animator#end() .
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: AnimatedVectorDrawable.java From CanDialog with Apache License 2.0 | 5 votes |
@Override public void stop() { final ArrayList<Animator> animators = mAnimatedVectorState.mAnimators; final int size = animators.size(); for (int i = 0; i < size; i++) { final Animator animator = animators.get(i); animator.end(); } }
Example 2
Source File: AnimationAdapter.java From HPlayer with Apache License 2.0 | 5 votes |
private void cancelExistingAnimation(final View convertView) { int hashCode = convertView.hashCode(); Animator animator = mAnimators.get(hashCode); if (animator != null) { animator.end(); mAnimators.remove(hashCode); } }
Example 3
Source File: SupportAnimatorPreL.java From fab-toolbar with MIT License | 5 votes |
@Override public void end() { Animator a = mAnimator.get(); if(a != null){ a.end(); } }
Example 4
Source File: SupportAnimatorPreL.java From material-sheet-fab with MIT License | 5 votes |
@Override public void end() { Animator a = mAnimator.get(); if(a != null){ a.end(); } }
Example 5
Source File: SupportAnimatorPreL.java From RecyclerView-Animation-Demo with Apache License 2.0 | 5 votes |
@Override public void end() { Animator a = mAnimator.get(); if(a != null){ a.end(); } }
Example 6
Source File: SupportAnimatorPreL.java From fab-transformation with MIT License | 5 votes |
@Override public void end() { Animator a = mAnimator.get(); if (a != null) { a.end(); } }
Example 7
Source File: BaseIndicatorController.java From AndroidPlayground with MIT License | 5 votes |
/** * make animation to start or end when target * view was be Visible or Gone or Invisible. * make animation to cancel when target view * be onDetachedFromWindow. * @param animStatus */ public void setAnimationStatus(AnimStatus animStatus){ if (mAnimators==null){ return; } int count=mAnimators.size(); for (int i = 0; i < count; i++) { Animator animator=mAnimators.get(i); boolean isRunning=animator.isRunning(); switch (animStatus){ case START: if (!isRunning){ animator.start(); } break; case END: if (isRunning){ animator.end(); } break; case CANCEL: if (isRunning){ animator.cancel(); } break; } } }
Example 8
Source File: AnimationAdapter.java From ALLGO with Apache License 2.0 | 5 votes |
private void cancelExistingAnimation(int position, View convertView) { int hashCode = convertView.hashCode(); Animator animator = mAnimators.get(hashCode); if (animator != null) { animator.end(); mAnimators.remove(hashCode); } }
Example 9
Source File: AnimationAdapter.java From UltimateAndroid with Apache License 2.0 | 5 votes |
private void cancelExistingAnimation(final View convertView) { int hashCode = convertView.hashCode(); Animator animator = mAnimators.get(hashCode); if (animator != null) { animator.end(); mAnimators.remove(hashCode); } }
Example 10
Source File: AnimationAdapter.java From android-open-project-demo with Apache License 2.0 | 5 votes |
private void cancelExistingAnimation(final View convertView) { int hashCode = convertView.hashCode(); Animator animator = mAnimators.get(hashCode); if (animator != null) { animator.end(); mAnimators.remove(hashCode); } }
Example 11
Source File: ViewAnimator.java From ListViewAnimations with Apache License 2.0 | 5 votes |
/** * Cancels any existing animations for given View. */ void cancelExistingAnimation(@NonNull final View view) { int hashCode = view.hashCode(); Animator animator = mAnimators.get(hashCode); if (animator != null) { animator.end(); mAnimators.remove(hashCode); } }
Example 12
Source File: ArcAnimator.java From MousePaint with MIT License | 4 votes |
@Override public void end() { super.end(); Animator a = mAnimator.get(); if(a != null) a.end(); }