解决办法,改为使用android-gif-drawable.jar来显示gif图片(需要配合com.android.support:support-v4:18.0.0使用)

 

GifImageView imageView = new GifImageView(this);
GifDrawable gifFromPath = null;
                try {
                    gifFromPath = new GifDrawable(imagePath);  // gif图片在本机的路径比如 /mnt/sdcard/ggggg.gif
                } catch (IOException e) {
                    e.printStackTrace();
                }
imageView.setImageDrawable(gifFromPath);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2021-10-04
  • 2021-10-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-22
  • 2021-06-19
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案