Questions tagged [animationdrawable]

An object used to create frame-by-frame animations in Android. Generally defined as an XML file, placed in the res/drawable/ folder.

An object used to create frame-by-frame animations in Android. Generally defined as an XML file, placed in the res/drawable/ folder. Reference: https://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html

153 questions
0
votes
1 answer

Android Frame by Frame Animation issue out of memory or slow animation

I am having hard time to perform frame by frame Animation in my App from last 3 days. I have around 90 images in drawable folder to perform Animation. Firstly I have tried AnimationDrawbale but it gets out of memory error. Also I have applied…
0
votes
0 answers

How i pause and resume AnimationDrawable in Android?

AnimationDrawable animation = new AnimationDrawable(); animation.addFrame(getResources().getDrawable(R.drawable.a1), 1000); animation.addFrame(getResources().getDrawable(R.drawable.a2), 1000); …
0
votes
1 answer

Changing background of app gradually

I have an app with certain background and i want to change it to different background very nicely and gradually on a button click. I tried doing it with objectanimator by setting background attribute of root layout to two png files that are in my…
0
votes
0 answers

is it possible to set the Indeterminate Progress (spinning wheel ) to an Image View?

I am using a FAB and I would like to set the image to the Indeterminate Progress (Spinning Wheel) , I am thinking if maybe there is an AnimationDrawable that can be set?
0
votes
1 answer

Possible animationdrawable with path?

I am new with Animations and have my first animationdrawable finish. Only two PNGs but it runs. But i have not found a solution for move the Picture or rotate them. Is this posible ?
Marcus Berger
  • 67
  • 1
  • 12
0
votes
1 answer

View Recycling in ListView with AnimationDrawable

So I have this ListView with a custom adapter that allows me to "select" an item on item clicks. Now every row of the list has an ImageView whose Drawable I change to a "selected" image when the respective item is selected. Working fine on my…
0
votes
1 answer

how to stop frame animation when mediaplayer completes playback?

I have a frame animation (Animation Drawable) that is supposed to run in sync with an audio (MediaPlayer). I pause the audio (mediaplayer.pause()) and stop the animation (as I am not able to find a way to pause it) when I pause my Activity class…
user5673235
  • 21
  • 1
  • 9
0
votes
2 answers

GifAnimationDrawable(Gif file) not playing in ListView

I would like to show to download the gif file. And processed using the GifAnimationDrawable. It was operating in the emulation. Not on other devices. gif images that did not play. No difficult point to error. public void showGifView(InputStream…
0
votes
1 answer

Remove frames from animation android

I have been trying out frame animation in android. I am able to add new frames, by using the following command animation.addFrame(getResources().getDrawable Is there a way where I can flush all the frames, start fresh again.?
Lakshmi Narayanan
  • 5,220
  • 13
  • 50
  • 92
0
votes
1 answer

Frame by frame animation Android

I wanted to create a talking avatar, using tts Android and drawable frame anmation in Android. The lip sync images were stored in the drawable folder. And this is the piece of function that is executed when the speak button is pressed. The gist of…
Lakshmi Narayanan
  • 5,220
  • 13
  • 50
  • 92
0
votes
1 answer

How do I launch animationdrawable onTouch?

I have cat animation jumping, it has 5 drawables, i want to touch the cat and make it jump. if android oneshot="false", after touching the cat it keeps jumping forever.
ERJAN
  • 23,696
  • 23
  • 72
  • 146
0
votes
0 answers

XML file line#35:error inflating class - too many images for animation[android]

I have animation drawable of a cat jumping(it consists of 5 separate images being loaded), here is xml for the animation:
ERJAN
  • 23,696
  • 23
  • 72
  • 146
0
votes
2 answers

drawable animation not workin

i want to use of animation drawable in my list but when i start the listActivity it crashs i have learned from this , when i remove this 2 animation codes AnimationDrawable frameAnimation = (AnimationDrawable) GamePic.getBackground(); …
roz
  • 27
  • 1
  • 8
0
votes
1 answer

Stopping drawable animation after first loop

My problem is trying to figure out how to stop the drawable animation after it iterated though the images (eg. it being back to the grapes image). I certainly can't use the method I implemented in .ACTION.DOWN so can anybody help me with this. …
user3606724
0
votes
1 answer

AnimationDrawable xml vs dynamically

I was wondering, is there a difference memory-whise between defining an animationdrawable in xml and making the animationdrawable dynamically in your code?
Matty De Bie
  • 111
  • 9