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
2
votes
3 answers

Loop animation drawable

I'm trying to animate some png and i would loop the animation. This is my code: wave.setBackgroundResource(R.drawable.wave_animation); frameAnimation = (AnimationDrawable)wave.getBackground(); …
Atlas91
  • 5,754
  • 17
  • 69
  • 141
2
votes
0 answers

Drawable Animation With Gesture To Pause, Go Forward and Backward

I wan't to make something like a DrawableAnimation, displaying an image sequence. This Drawable animation could be played automatically, and also managed with a gesture recognition to read Forward and backward, slow or pause the animation etc... I…
Lord St John
  • 124
  • 1
  • 2
  • 13
2
votes
0 answers

Animating custom CheckedTextView when clicked with AnimationDrawable

I want to add some kind of Material look to my checkboxes. I want the checkmark drawable to animate from one state to another, using custom drawables. I tried to animate both an ImageView (to see if it works) and a CheckedTextView (which is what I…
natario
  • 24,954
  • 17
  • 88
  • 158
2
votes
0 answers

When I start one AnimationDrawable in the ListView item, some other AnimationDrawable starts

In each item of the ListView, there is an ImageView. I have set it's ImageDrawable with an AnimationDrawable. When the ResultReceiver receives a result, the AnimationDrawable starts or stop. Here is my code: public class PicassoListNearbyAdapter…
2
votes
0 answers

how do i run AnimationDrawable 3 times

Hi again everyone and thanks for your help last time. Thanks also for any help you all give me on this one! So i have an amimationDrawable of a coinSpinning.
2
votes
1 answer

Out of memory issues with AnimationDrawable

I need to show frame-animation on an ImageView. I am using AnimationDrawable to play the animation on some click event. Its working fine if I show single animation. But based on the button clicked I need to show three different animations.When I'm…
lingareddyk
  • 175
  • 4
  • 12
2
votes
2 answers

Possible to addFrame but not to removeFrame on AnimationDrawable?

I'm creating an animation which should change randomly, so i needed to use AnimationDrawable (and yes, i couldn't manage that by using Animation.) So basicly, i have some imageviews and i am dynamically adding frame into, and setting to them. So…
yahya
  • 4,810
  • 3
  • 41
  • 58
2
votes
2 answers

AnimationDrawable getting null on getBackground()

I am trying to animate a sample program with the following code: AnimationDrawable animation; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Simon
  • 509
  • 7
  • 25
1
vote
0 answers

Drawing of Fragment is lagging my loading animation

I am using AnimationDrawable to show loading. Something like this:
Matej Košút
  • 590
  • 2
  • 10
  • 27
1
vote
1 answer

Animation Drawable with Sound in android?

I use the animation drawable functionality in my class. I need to generate the sound while each frame of animation is loaded.Whether it is possible or not. I use the following code for animation:
Karthi
  • 13,624
  • 10
  • 53
  • 76
1
vote
0 answers

Android Studio - Reducing Animation Resources

I have created a 20-frame animation using Adobe and plan to make a screensaver for my app. It is a security app on a tablet I provide to the customer, so it is always plugged in, with only my app running. Even so, the tablets aren't the…
1
vote
1 answer

Android build failed: error: cannot find symbol variable radio_animator

I just upgraded Android studio to the latest version : Android Studio 3.2.1 Build #AI-181.5540.7.32.5056338, built on October 9, 2018 JRE: 1.8.0_152-release-1136-b06 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10…
1
vote
2 answers

Create "growing ripples" loading animation - OutOfMemoryException

I want to display this animation in an Android app: So I created a to do so. It uses 46 frames, each one consisting of a 200x200px png:
Magnus
  • 17,157
  • 19
  • 104
  • 189
1
vote
1 answer

Android Multilevel expandable list view set third level child item clicked

i have codes from this project, and i want to implement expandable third level child OnItemClick, i tried to use concept from this 2 level expandablelistview child click listener but it did not work. SO how can i make user know has selected…
1
vote
1 answer

How to add AnimationDrawable inside a ViewPager?

I'm trying to add an AnimationDrawable in the first page of a ViewPager. The idea is that every time I get into the first page the animation will resume from the most recent frame. The problem is that when I flip back from the third page to the…
1 2
3
10 11