Android examples for android.animation:Animator
end a list of animator
//package com.java2s; import android.animation.Animator; import java.util.List; public class Main { /**/*w ww . j a v a 2 s. c o m*/ * end a list of animator * * @param animators * @return */ public static boolean end(List<Animator> animators) { boolean isEndCalled = false; if (animators != null) { for (Animator animator : animators) { if (end(animator)) { isEndCalled = true; } } } return isEndCalled; } /** * call function and end * * @param animator * @return */ public static boolean end(Animator animator) { if (animator != null && animator.isStarted()) { animator.end(); return true; } return false; } }