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

RecyclerViews and AnimationDrawables - how can I put AnimationDrawables into a ViewHolder without them stopping on having another view in the window?

Basically, I have an AnimationDrawable that I generated with a helper method: public static AnimationDrawable requestLoadingDrawable(Context originContext) { if(panoramaLoadingLoopDrawable == null) { panoramaLoadingLoopDrawable =…
Gensoukyou1337
  • 1,507
  • 1
  • 13
  • 31
1
vote
0 answers

AnimationDrawable in RecyclerView item not animating on notifyDataSetChanged

I have a recyclerview whenever i select an item in recyclerview to play music i need to animate my AnimationDrawable equalizer of selected item but it is not animating when i call notifyDataSetChanged to refresh my view to show equalizer on selected…
1
vote
0 answers

AnimationDrawable auto play in RecycleView on Android 4.4(API 19)

AnimationDrawable auto play in RecycleView on Android 4.4(API 19) activity public class RecycleViewFrameAnimationActivity extends AppCompatActivity implements View.OnClickListener { private RecyclerView recyclerView; private…
1
vote
0 answers

AnimationDrawable different size frames

I created an animation in android with this code: AnimationDrawable animation = new AnimationDrawable(); if (null == frames) { return animation; } for (int i = 0; i < frames.size(); i++) { …
Zach Bublil
  • 857
  • 10
  • 28
1
vote
2 answers

Android - AnimationDrawable flashing white hole while playing a custom bitmap drawable

I write the custom ImageView to display an animation with list of bitmaps. Here is my source code: public class CustomImageView extends ImageView { public CustomImageView(Context context) { super(context); } public void…
KimKha
  • 4,370
  • 1
  • 37
  • 45
1
vote
1 answer

Android AnimationDrawable Recycling issue

I have a AnimationDrawable that i initialise before starting the animation and recycle it right as it finishes.. the problem is that when i want to start the animation again, i reinitialise everything but still gives an exception…
Ahmed Z.
  • 2,329
  • 23
  • 52
1
vote
1 answer

AnimationDrawable from play to stop icon on FloatingActionButton

I have a web radio player app that haves a FloatingActionButton to play and stop the reproduction. When the player is not playing, the icon is a play, when it is playing, the icon is a stop. Some days ago I saw an animation that could be very good…
Informatheus
  • 1,025
  • 1
  • 9
  • 20
1
vote
1 answer

Using AnimationDrawable: Canvas: trying to use a recycled bitmap

I'm using Animation drawable to display a gif. I split the gif into frames, I created an animation file and I load it using: animationImageView.setImageResource(splashAnimationResource); animation = (AnimationDrawable)…
Jason Oviedo
  • 459
  • 1
  • 5
  • 16
1
vote
0 answers

Android AnimationDrawable flickering issue on Motorola device running KitKat (4.4.4)

I've implemented an AnimationDrawable that cycles through 6 image frames. Here's how I'm initializing the animation: animation = new AnimationDrawable(); // images is an ArrayList for (Bitmap image : images) { BitmapDrawable…
1
vote
1 answer

How to detect if an Android ImageView drawable is an anim?

In my app I have an ImageView that can have a changing source. The source is always a Drawable, either a Bitmap or an xml anim made of drawables. But, when the source is an animation, I have to call the start() method on the Drawable and thus cast…
1
vote
1 answer

Having an NullPointerException while trying to start an AnimationDrawable with WatchViewStub

I have to use a Watchviewstub for my Android Wear and this causes me a NullpointerException. When I don`t use the WatchviewStub the AnimationDrawable is working perfect. Basically I am trying it to solve it like it is described here. I also…
Den Jo
  • 112
  • 1
  • 12
1
vote
1 answer

Create an animation from images in expansion APK

So I want to create some animating ImageViews as described in : http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html However I have been searching but couldn't find anything on this subject. Is it possible to have…
1
vote
0 answers

White screen when starting activity with AnimationDrawable

I have an application that has an introduction animation, the animation displays perfectly but when launching the app, a white screen with an actionBar (the activity with the animetion hides the actionBar in it's onCreate) shows up for a few…
1
vote
1 answer

What is the best practice for providing resources for an Android AnimationDrawable PNG sequence?

I have created a sequence of PNG's for a splash loader animation in the various screen densities. I am using AnimationDrawable and have created the animation in an XML file. The sequence of PNG's for each density is 30 frames long. At 5 densities…
Steven Schafer
  • 834
  • 3
  • 10
  • 24
1
vote
0 answers

Out of Memory errof while playing animation through animation Drawable?

I have almost more than 1000 images which I need to display via Animation Drawable. I have started one animation in on windows focus change method.When I press next button the next Image animation should displayed(only one activity used). It shows…
Abhi
  • 433
  • 2
  • 7
  • 17