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

AnimationDrawable not showing on 4.03 device

I have a framelayout in the layout for a row in a ListView. When an item appears in the listview an AnimationDrawable is triggered. This works fine on the Nexus 4 and Nexus 5. I had to change from using view.setBackground to…
Stephen
  • 762
  • 1
  • 12
  • 32
0
votes
1 answer

DrawableAnimation cause the layout flicking

I have an view which has an DrawableAnimation background in the layout, I get the animation drawable and start animation or stop animation like below code private void init() { xxx.setBackgroundResource(R.drawable.avatar_wave_profile); …
dreamtale
  • 2,905
  • 1
  • 26
  • 38
0
votes
1 answer

How to stop AnimationDrawable after 2 repeat

I have made an animation using AnimationDrawable with images.It is running well. But I want to stop it after 2 repeat. How can I do this? Here is my codes. @Override public void onWindowFocusChanged(boolean hasFocus) { …
emreturka
  • 846
  • 3
  • 18
  • 44
0
votes
2 answers

out_of_memory_error occur using AnimationDrawable?

I have 5 FrameLayout, In all screen i am using AnimationDrawable class for some animation and when Activity goes to another activity or further. Edit 1 for code snippet what I am Using : iView_cow.setOnClickListener(new OnClickListener() { …
user2800189
0
votes
1 answer

Animation Drawable under Button

I've searched around stack overflow and yet am still having trouble with this issue. i want to display a Button on my app, using an AnimationDrawable as my background. I followed the Android Dev page…
0
votes
1 answer

Frame by frame animation with memory problems

I am trying an app with a viewpager. Each page contains a background image and two or three ImageView but its really source is an AnimationDrawable (frame by frame animation-list in XML). I try display bitmaps efficiently as I see here:…
LopezAgrela
  • 548
  • 1
  • 4
  • 12
0
votes
1 answer

Multiple AnimationDrawables at the same time

Is it possible to generate 2 animationdrawables at the same time? I tried it with threads: Thread t1 = new Thread(){ public void run(){ runOnUiThread(new Runnable() { public void run() { animation1.start(); } }}; Thread…
Billabong
  • 457
  • 2
  • 8
  • 23
0
votes
0 answers

animated drawable after layout.visibility()

I try to use the AnimationDrawable to display a Loading Animation. I make the loading "Screen" Visible by set its Visibility to VISIBLE. I know that a AnimationDrawable should be started AFTER the screen is set and i used the solution from Google…
user2332887
  • 1
  • 1
  • 2
0
votes
1 answer

Using FrameAnimations and AnimationDrawable to display images not working

I have a simple .xml layout file that has a simple ImageView, that I want to switch images on. I decided to go ahead and do it with FrameAnimations, using the AnimationDrawable API. I have managed to create my animation file in "drawable/file.xml",…
rel-s
  • 6,108
  • 11
  • 38
  • 50
0
votes
1 answer

AnimationDrawable: how to catch animation end event

I have an AnimationDrawable that starts and I need to start a tween animation right after the first animation is ended. I've seen AnimationDrawable doesn't have an AnimationListener setter, so how can I know when it is finished? I've seen some…
Daniele Vitali
  • 3,848
  • 8
  • 48
  • 71
0
votes
1 answer

android live wallpapers parallax-scrolling effect

when we scroll, the foreground of the home screen (icons, widgets, etc.) moves to the left or right by the full screen width, but the background image (or live wallpaper) only moves by a fraction of that width. My question is how get this…
0
votes
1 answer

Android Frame animation does not proceed more than one image

I have created a folder called anim inside res folder. I have put 9 consequtive images in a folder called drawable inside res folder. Now I have created this: public class AndroidAnimationActivity extends Activity { @Override public void…
zionlion
  • 1
  • 1
0
votes
1 answer

How to optimize frame animation?

I want to do Frame Animation with 30 frames. My code for the same is: animation = new AnimationDrawable(); for (int i= 1; i<= 30 ; i++){ frame= "xyz"+ i; resource = this.getResources().getIdentifier(frame, "drawable",…
Vaibs
  • 1,128
  • 3
  • 16
  • 36
0
votes
3 answers

Android: Another "Error inflating class

I use a lot of images in my activity "GameActivity" (I do imageView.setImageDrawable(AnimationDrawable) where AnimationDrawable has more then 16fremes, images that I don't use in my second activity "ShareActivity" Yet this error appears 02-13…
morg
  • 1,173
  • 4
  • 18
  • 36
0
votes
1 answer

AnimationDrawable create an infinite Loop

I am using AnimationDrawable to create a Frame by Frame effect, I want to when the images changes, the circle dot change together, my code create a infinite loop, if I get off While(mframeAnimation.isRunning()) then it just check the value one time…
Marckaraujo
  • 7,422
  • 11
  • 59
  • 97
1 2 3
10
11