Lines Matching refs:animator
147 * Applies the animation scale to the given {@code animator}.
149 public static Animator applyAnimationTimeScale(Animator animator) {
150 if (animator instanceof AnimatorSet) {
151 for (Animator child : ((AnimatorSet) animator).getChildAnimations()) {
155 if (animator.getDuration() > 0) {
156 animator.setDuration((long) (animator.getDuration() * ANIMATION_TIME_SCALE));
158 animator.setStartDelay((long) (animator.getStartDelay() * ANIMATION_TIME_SCALE));
159 return animator;
188 * Returns an animator which animates the source image of the {@link ImageView}.
197 * Returns an animator which animates the source image of the {@link ImageView} with start delay.
203 ObjectAnimator animator = ObjectAnimator.ofInt(imageView, "imageResource", frames);
205 animator.setDuration(frames.length * 1000 / 60);
206 animator.setInterpolator(null);
207 animator.setStartDelay(startDelay);
208 animator.setEvaluator(new TypeEvaluator<Integer>() {
214 return animator;
218 * Creates a fade out animator.
227 ObjectAnimator animator =
230 animator.addListener(new AnimatorListenerAdapter() {
237 return animator;