List of usage examples for android.animation Animator isPaused
public boolean isPaused()
From source file:Main.java
@SuppressLint("NewApi") public static void startOrResumeAnimator(Animator animator) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { if (animator.isPaused()) { animator.resume();// w ww. j a v a2 s .com return; } } animator.start(); }
From source file:Main.java
public static boolean isPaused(Animator animator) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { return animator != null && animator.isPaused(); }//from ww w . ja v a2 s.c o m return false; }
From source file:Main.java
/** * resume//from w w w . j a v a 2s. c o m * * @param animator */ public static boolean resume(Animator animator) { if (animator != null) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { if (animator.isPaused()) { animator.resume(); return true; } } } return false; }
From source file:Main.java
/** * pause// w w w . ja v a2 s. c om * * @param animator */ public static boolean pause(Animator animator) { if (animator != null) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { if (!animator.isPaused()) { animator.pause(); return true; } } } return false; }