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
1
vote
0 answers

AnimationDrawable missing frames

I'm trying to display a set of Bitmaps using an AnimationDrawable object. For some reason, some of the images are missing when the view is rendered in the UI: ... MediaMetadataRetriever retriever = new…
Cat
  • 7,042
  • 8
  • 34
  • 36
1
vote
2 answers

AnimationDrawable on existing ImageView will not animate

I have the following code for adding an animation to an ImageView after applying another animation. The animation never starts. Here is the related code: // I'm Using Jake Wharton's ButterKnife,a view "injection"…
dornad
  • 1,274
  • 3
  • 17
  • 36
1
vote
1 answer

adding frame animations android stack overflow error

hello can anybody help me please? I've created a layout with four image buttons and a text view under each image, the image buttons used to be images at res/drawables and added to android:src="eg" and it worked perfectly, until.. i recently learnt…
martinseal1987
  • 1,862
  • 8
  • 44
  • 77
1
vote
2 answers

java.lang.OutOfMemoryError occur on the animation Loading?

What I get from the Developer site is "If in the loading time total size of the animation exceed the value of Virtual heap memory , this error will occur" and For the Solution use BitmapFactory. I tried in the below code : Now, the question is this,…
Akarsh M
  • 1,629
  • 2
  • 24
  • 47
1
vote
4 answers

how to relase /free / destroy AnimationDrawable because I got OutOfMemory issue?

I am using AnimationDrawable in my all five Activities. I am getting outofMemory error after some time. problem is related to Virtual Heap Memory and I am finding a way to remove all the earlier/pervious animation when I tap on the new Activity. I…
user2800189
1
vote
1 answer

AnimationDrawable scaling down the images to animate

I want to animate four images to be displayed in a row. In the layout XML-file I'm creating an ImageView:
Syex
  • 1,320
  • 1
  • 12
  • 23
1
vote
0 answers

How to hide animation in DrawableAnimation android

I have written an animation like progressdialog . I want to stop and hide animation when click the button. Here is my codes. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
emreturka
  • 846
  • 3
  • 18
  • 44
1
vote
1 answer

Android Animation Drawable Error with BitmapDrawable

I am now writing a program to play a list of image using AnimationDraawable in android application. The list of images are download from the server. But I have encountered error in my program that cannot add the drawable to the AnimationDrawable.…
1
vote
1 answer

How can I set an AnimationDrawable to Marker?

I would like to add an AnimationDrawable as image to my Marker on Google Map v2, but it seems not to be really possible. Does anyone know how MyLocation blue blinking circle is implemented in Android Google Maps or how I could add an animated…
1
vote
1 answer

play 2 animationdrawables after each other

I would like to play 2 animationdrawables after eachother.. When the first one stops, the other one has to start.. The problem is: AnimationListener is not possible with animationdrawables Does anybody know a solution? thank you
RobinHo
  • 565
  • 1
  • 9
  • 24
1
vote
0 answers

Android animation-list with shape darwable not working properly

I'm trying to do an Animation between different image resources. Therefor I'm using the frame animation. listanimation.xml
tiran
  • 441
  • 4
  • 6
1
vote
0 answers

Android: AnimationDrawable

I hope for the help. I create at first for ImageView TranslateAnimation, then as AnimationEnd I register creation of AnimationDrawable in ListenerAnimation and I start it. ImageView MyImageView = New…
zharik86
  • 51
  • 1
  • 3
0
votes
0 answers

Android xml animation loading

This is the effect I would like to have: I have the following image, how can I make xml animate like what you see in the picture? Can you give me a hand? imgAnimate:
Paul
  • 3,644
  • 9
  • 47
  • 113
0
votes
1 answer

Animation while playing media with ExoPlayer

so im trying to make a video player that plays media on a fraction of the screen while the remaining fraction of the screen shows different images. I am trying to tackle this using animation list:
0
votes
0 answers

AnimationDrawable not animating on Watch Face

I'm trying to add an animation to a watch face that I'm building in Android Studio and I'm facing some issues. I'm totally new to this type of programming so if I say something dumb please correct me. First, I learned how to draw a layout in the…
Blodht
  • 1
  • 1