HomeSort by relevance Sort by last modified time
    Searched refs:animationDrawable (Results 1 - 2 of 2) 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/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;

Completed in 69 milliseconds