OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:animationdrawable
(Results
1 - 25
of
50
) sorted by null
1
2
/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
...]
/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
...]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowAnimationDrawable.java
3
import android.graphics.drawable.
AnimationDrawable
;
11
@Implements(
AnimationDrawable
.class)
ShadowImageView.java
7
import android.graphics.drawable.
AnimationDrawable
;
73
AnimationDrawable
animationDrawable
= new
AnimationDrawable
();
75
animationDrawable
.addFrame(drawable, -1);
77
return
animationDrawable
;
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
VectorDrawableAnimation.java
19
import android.graphics.drawable.
AnimationDrawable
;
37
AnimationDrawable
frameAnimation = (
AnimationDrawable
) v.getBackground();
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
MediaRouteExpandCollapseButton.java
23
import android.graphics.drawable.
AnimationDrawable
;
34
final
AnimationDrawable
mExpandAnimationDrawable;
35
final
AnimationDrawable
mCollapseAnimationDrawable;
51
mExpandAnimationDrawable = (
AnimationDrawable
) ContextCompat.getDrawable(
53
mCollapseAnimationDrawable = (
AnimationDrawable
) ContextCompat.getDrawable(
MediaRouteButton.java
25
import android.graphics.drawable.
AnimationDrawable
;
493
&& mRemoteIndicator.getCurrent() instanceof
AnimationDrawable
) {
494
AnimationDrawable
curDrawable = (
AnimationDrawable
) mRemoteIndicator.getCurrent();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
AnimatedImageView.java
21
import android.graphics.drawable.
AnimationDrawable
;
33
AnimationDrawable
mAnim;
64
if (drawable instanceof
AnimationDrawable
) {
65
mAnim = (
AnimationDrawable
) drawable;
/cts/tests/tests/graphics/src/android/graphics/cts/
ImageViewCtsActivity.java
20
import android.graphics.drawable.
AnimationDrawable
;
24
* A minimal application for {@link
AnimationDrawable
} test.
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
AppCompatProgressBarHelper.java
22
import android.graphics.drawable.
AnimationDrawable
;
116
* Convert a
AnimationDrawable
for use as a barberpole animation.
121
if (drawable instanceof
AnimationDrawable
) {
122
AnimationDrawable
background = (
AnimationDrawable
) drawable;
124
AnimationDrawable
newBg = new
AnimationDrawable
();
/external/replicaisland/src/com/replica/replicaisland/
DiaryActivity.java
23
import android.graphics.drawable.
AnimationDrawable
;
68
AnimationDrawable
anim = (
AnimationDrawable
) okArrow.getBackground();
AnimationPlayerActivity.java
24
import android.graphics.drawable.
AnimationDrawable
;
43
private
AnimationDrawable
mAnimation;
83
mAnimation = (
AnimationDrawable
) canvasImage.getDrawable();
ConversationDialogActivity.java
26
import android.graphics.drawable.
AnimationDrawable
;
49
private
AnimationDrawable
mOkAnimation;
58
mOkAnimation = (
AnimationDrawable
) mOkArrow.getBackground();
/packages/apps/TV/src/com/android/tv/ui/
IntroView.java
21
import android.graphics.drawable.
AnimationDrawable
;
30
private
AnimationDrawable
mRippleDrawable;
68
mRippleDrawable = (
AnimationDrawable
) v.getBackground();
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ImageViewTest.java
7
import android.graphics.drawable.
AnimationDrawable
;
83
assertTrue(animation instanceof
AnimationDrawable
);
89
AnimationDrawable
animation = (
AnimationDrawable
) imageView.getDrawable();
ResourcesTest.java
17
import android.graphics.drawable.
AnimationDrawable
;
75
* given an R.anim.id value, will return an
AnimationDrawable
80
assertThat( resources.getDrawable( TestR.anim.test_anim_1 ), instanceOf(
AnimationDrawable
.class ) );
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
OnboardingDemoFragment.java
20
import android.graphics.drawable.
AnimationDrawable
;
110
((
AnimationDrawable
) mContentAnimationView.getDrawable()).start();
121
((
AnimationDrawable
) mContentAnimationView.getDrawable()).stop();
135
((
AnimationDrawable
) mContentAnimationView.getDrawable()).start();
OnboardingDemoSupportFragment.java
23
import android.graphics.drawable.
AnimationDrawable
;
113
((
AnimationDrawable
) mContentAnimationView.getDrawable()).start();
124
((
AnimationDrawable
) mContentAnimationView.getDrawable()).stop();
138
((
AnimationDrawable
) mContentAnimationView.getDrawable()).start();
/frameworks/base/graphics/java/android/graphics/drawable/
AnimationDrawable.java
42
* An
AnimationDrawable
defined in XML consists of a single
63
* // set its background to our
AnimationDrawable
XML resource.
67
* // Get the background, which has been compiled to an
AnimationDrawable
object.
68
*
AnimationDrawable
frameAnimation = (
AnimationDrawable
) img.getBackground();
76
* <p>For more information about animating with {@code
AnimationDrawable
}, read the
87
public class
AnimationDrawable
extends DrawableContainer implements Runnable, Animatable {
101
public
AnimationDrawable
() {
106
* Sets whether this
AnimationDrawable
is visible.
141
* the {@link
AnimationDrawable
} is not yet fully attached to the window
[
all
...]
AnimatedStateListDrawable.java
209
if (d instanceof
AnimationDrawable
) {
212
transition = new AnimationDrawableTransition((
AnimationDrawable
) d,
269
// Even
AnimationDrawable
is always reversible technically, but
273
public AnimationDrawableTransition(
AnimationDrawable
ad,
682
public FrameInterpolator(
AnimationDrawable
d, boolean reversed) {
686
public int updateFrames(
AnimationDrawable
d, boolean reversed) {
/frameworks/base/core/java/android/view/animation/
package.html
12
handled by the {@link android.graphics.drawable.
AnimationDrawable
} class.
/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);
/frameworks/base/core/java/com/android/internal/app/
MediaRouteControllerDialog.java
28
import android.graphics.drawable.
AnimationDrawable
;
257
if (icon instanceof
AnimationDrawable
) {
258
AnimationDrawable
animDrawable = (
AnimationDrawable
) icon;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
MessageWizardFragment.java
20
import android.graphics.drawable.
AnimationDrawable
;
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
DrawableResourceLoader.java
4
import android.graphics.drawable.
AnimationDrawable
;
84
return new
AnimationDrawable
();
Completed in 816 milliseconds
1
2