List of usage examples for android.animation ObjectAnimator ofFloat
public static <T> ObjectAnimator ofFloat(T target, Property<T, Float> xProperty, Property<T, Float> yProperty, Path path)
Path
using two properties. From source file:Main.java
public static void runRotateAnim(View v, float begin, float end, int duration) { ObjectAnimator.ofFloat(v, "rotation", begin, end).setDuration(duration).start(); }
From source file:Main.java
public static android.animation.Animator createFadeInAnimator(View view) { return ObjectAnimator.ofFloat(view, "alpha", 0, 1).setDuration(300); }
From source file:Main.java
public static void translationX(View view, float start, float end, int duration) { ObjectAnimator.ofFloat(view, "translationX", start, end).setDuration(duration).start(); }
From source file:Main.java
public static void translationY(View view, float start, float end, int duration) { ObjectAnimator.ofFloat(view, "translationY", start, end).setDuration(duration).start(); }
From source file:Main.java
public static ObjectAnimator alpha(View view, int duration) { ObjectAnimator animator = ObjectAnimator.ofFloat(view, "alpha", 0f, 1f); animator.setDuration(duration);/* ww w. ja va2 s . co m*/ return animator; }
From source file:Main.java
public static ObjectAnimator rotation(View view, int duration) { ObjectAnimator animator = ObjectAnimator.ofFloat(view, "rotation", 0f, 360f); animator.setDuration(duration);// w ww . j a va 2 s. c o m return animator; }
From source file:Main.java
public static android.animation.Animator createExpandAnimator(View view, float offset) { return ObjectAnimator.ofFloat(view, "translationY", offset, 0).setDuration(300); }
From source file:Main.java
public static android.animation.Animator createCollapseAnimator(View view, float offset) { return ObjectAnimator.ofFloat(view, "translationY", 0, offset).setDuration(300); }
From source file:Main.java
public static void alpha(View view, float from, float to, int duration) { ObjectAnimator alpha = ObjectAnimator.ofFloat(view, "alpha", from, to); alpha.setDuration(duration);//from ww w. j a v a 2s . c om alpha.start(); }
From source file:Main.java
public static void rotationAngle(View view, float angleValue, long duration) { ObjectAnimator animator = ObjectAnimator.ofFloat(view, "rotation", 0f, angleValue); animator.setDuration(duration);/*from w w w . j a v a 2s .c o m*/ animator.start(); }