Searched refs:animationDrawable (Results 1 – 2 of 2) sorted by relevance
539 final AnimationDrawable animationDrawable = (AnimationDrawable) drawable; in loadResource() local540 final int frames = animationDrawable.getNumberOfFrames(); in loadResource()541 drawable = animationDrawable.getFrame(0); in loadResource()547 mDurationPerFrame = animationDrawable.getDuration(0); in loadResource()552 Drawable drawableFrame = animationDrawable.getFrame(i); in loadResource()
647 if (drawable instanceof AnimationDrawable animationDrawable) { in setImageViewAnimationRunning()649 animationDrawable.start(); in setImageViewAnimationRunning()651 animationDrawable.stop(); in setImageViewAnimationRunning()653 } else if (drawable instanceof AnimatedVectorDrawable animationDrawable) { in setImageViewAnimationRunning()655 animationDrawable.start(); in setImageViewAnimationRunning()657 animationDrawable.stop(); in setImageViewAnimationRunning()