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

AnimationDrawable lagging

I'm using two voids to make animation because i need diffrent animations in same screen. And this animations for different ImageViews. When i add this two ImageViews at the same time to main screen. They start but lagging. But if i use same…
0
votes
0 answers

java.lang.nullpointerexception App crash on DrawableAnimation

ScreenSlide Activity code: package com.example.basicgrid; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import…
Manmeet S. Oberoi
  • 1,082
  • 1
  • 17
  • 29
0
votes
0 answers

AnimationDrawable not playing. Not called from onCreate

This is really weired, it plays in Nexus 5, but in all other phones it doesn't work. Please see my code, it definitely doesn't start animation in onCreate. I can see the first frame. public View onCreateView(LayoutInflater inflater,…
tactoth
  • 897
  • 1
  • 12
  • 24
0
votes
0 answers

OutofMemory Error in frame animation

I have developed a tour guide app. Some of the classes have frame animation. 3 activities with frame animation work well. But if another similar activity is clicked, it gives the memory leak error. Images are loaded from Drawables folder. Whole…
0
votes
0 answers

AnimationDrawable crashing app

So I've created my animation list and Ive set up my button but when I click the button which calls the animation method the app closes down and says "Unfortunately, Test has stopped working". I believe the problem is in the animation method but have…
Warren1008
  • 13
  • 7
0
votes
0 answers

AnimationDrawable doesn't work on Samsung S3 mini

i've got a problem: The AnimationDrawable in my app works perfectly on my Nexus 4 (Android 4.4.2) but on my Samsung Galaxy S3 (4.1.2) mini it doesn't start. Anyone there who knows how to solve that problem? Greetings Nils My Java code: public class…
nilskober
  • 188
  • 2
  • 12
0
votes
2 answers

Android: Disable texture filtering/interpolation on AnimationDrawable

I have a frame-by-frame AnimationDrawable that I'd like to scale without Android's default, blurry interpolation. (It's pixel art and looks better with nearest-neighbor.) Can I set a flag? Override onDraw? Anything to tell the GPU not to use…
kvance
  • 1,479
  • 18
  • 22
0
votes
1 answer

Creating a video from set of images Android

I am working on an app for android that creates video file from a video at start and then set of images, and saves it. Is there any way to accomplish that? I tried JCodec and it has broken libraries, untrusted code on the web and lack of knowledge…
0
votes
1 answer

android Frame Animation not working in BaseAdapter

I am downloading the images from server and storing in array in bitmap format, Then i intialise the Frame Animation and want to animate it from array viz i made previously, The problem i am facing is that frame animation is not animating.. final…
Mukesh
  • 3,680
  • 1
  • 15
  • 32
0
votes
0 answers

How to start Animation Drawable with multiple image from sdcard?

Hi i'm trying to start an AnimationDrawable with Bitmap contains in my phone memory like this : public void startAnimation(JSONArray listImgGroup, RelativeLayout rl) throws JSONException { if (listImgGroup.length() > 0) { …
0
votes
2 answers

running 2 animationDrawables at the same time

hey everyone hope u can help n thanks 4 looking here is my code for 2 spinning coins, but only coin1 spins....is it because they both refrence the same xml animation file or something else? public class MainActivity extends Activity { static…
0
votes
3 answers

why wont animationDrawable run after second click of button

hi everyone hope you can help and thanks for looking - i have a thread to run a coin spinning animation which is this public class MainActivity extends Activity { static AnimationDrawable frameAnimation; public boolean currentSpin =…
0
votes
1 answer

Draw text after animation complete android

i am confused to draw text after completion of animation here i tried i get draw able Drawable temp = animationDrawable.getCurrent(); after complete animation and send to method setDrawble(Drawable temp) here i am writing text on last frame and…
0
votes
3 answers

Animation Drawable not working in GingerBread

This question is already been asked,but i didn't find any suitable answers and so I'm posting the question. I've a ProgressBar animation which has multiple images and loads these images like a progressbar. I'm able to run it successfully in 4.0 and…
Saraschandraa
  • 478
  • 1
  • 10
  • 28
0
votes
2 answers

Android: AnimationDrawable squeezing my image

I have this weird behavior that I cannot find a solution around... This only happens in my emulator API Level 10, on my smartphone (Android 4.1) works fine. I wrote a dynamic animation to show a rolling dice, where 10 random frames are chosen as the…
Ivan
  • 149
  • 1
  • 12