HomeSort by relevance Sort by last modified time
    Searched refs:animationDrawable (Results 1 - 5 of 5) sorted by null

  /development/samples/devbytes/animation/KeyframeAnimation/src/com/example/android/keyframeanimation/
KeyframeAnimation.java 24 import android.graphics.drawable.AnimationDrawable;
31 * This example shows how to use AnimationDrawable to construct a keyframe animation where each
46 // Create the AnimationDrawable in which we will store all frames of the animation
47 final AnimationDrawable animationDrawable = new AnimationDrawable();
49 animationDrawable.addFrame(getDrawableForFrameNumber(i), 300);
52 animationDrawable.setOneShot(false);
54 imageview.setImageDrawable(animationDrawable);
61 if (animationDrawable.isRunning())
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowImageView.java 7 import android.graphics.drawable.AnimationDrawable;
73 AnimationDrawable animationDrawable = new AnimationDrawable();
75 animationDrawable.addFrame(drawable, -1);
77 return animationDrawable;
  /frameworks/base/core/java/android/view/
PointerIcon.java 26 import android.graphics.drawable.AnimationDrawable;
429 if (drawable instanceof AnimationDrawable) {
431 final AnimationDrawable animationDrawable = (AnimationDrawable) drawable;
432 final int frames = animationDrawable.getNumberOfFrames();
433 drawable = animationDrawable.getFrame(0);
439 mDurationPerFrame = animationDrawable.getDuration(0);
444 Drawable drawableFrame = animationDrawable.getFrame(i);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
AnimationDrawableTest.java 32 import android.graphics.drawable.AnimationDrawable;
65 private AnimationDrawable mAnimationDrawable;
79 imageView.setBackgroundResource(R.drawable.animationdrawable);
80 mAnimationDrawable = (AnimationDrawable) imageView.getBackground();
85 AnimationDrawable animationDrawable = new AnimationDrawable();
87 assertNotNull(animationDrawable.getConstantState());
88 assertFalse(animationDrawable.isRunning());
89 assertFalse(animationDrawable.isOneShot())
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
ExpandableNotificationRow.java 30 import android.graphics.drawable.AnimationDrawable;
308 if (drawable instanceof AnimationDrawable) {
309 AnimationDrawable animationDrawable = (AnimationDrawable) drawable;
311 animationDrawable.start();
313 animationDrawable.stop();
316 AnimatedVectorDrawable animationDrawable = (AnimatedVectorDrawable) drawable;
318 animationDrawable.start();
320 animationDrawable.stop()
    [all...]

Completed in 4798 milliseconds