1

I want to replace ImageView from PNG to GIF. I tried with this code:

        ImageView kotek = (ImageView)findViewById(R.id.imageView4);
        nYAn.setImageResource(R.drawable.kot);

But GIF isn't animate. What i should do? Sorry for my bad English :P

jar001
  • 13
  • 3

1 Answers1

3

ImageView does not support animated GIFs. Either convert the animated GIF into an AnimationDrawable, or use a third-party library for displaying the animated GIFs.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491