I try to show an animation (a windmills) inside each view of the ListView adapter, I can see the first image of the animation but the "animation" won't start.
Inside the adapter when I build the row, I start the animation like that:
ImageView img = (ImageView) row.findViewById(R.id.loader);
img.setVisibility(View.VISIBLE);
img.setBackgroundResource(R.drawable.myanim);
AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();
frameAnimation.start();
The animation myanim.xml work when it used outside a listview...
Thanks
– Maxime Nov 01 '11 at 14:51