This is the unofficial official answer I found here: Issue 3422 - android - Animated GIF not working in browser - Project Hosting on Google Code

If you want to work around this with your own Android build, you'll need to modify C++ code, rebuild, and
reflash your phone. You'll need to make two fixes to the released sources.

1) edit the function should_use_animated_gif() in
external/webkit/WebCore/platform/graphics/android/ImageSourceAndroid.cpp (around line 217). Return true
to animate gifs.

2) Change setRGBA() in /WebCore/platform/image-decoders/ImageDecoder.h (around line 173) to call
*dest = SkPackARGB32(a, r, g, b);
instead of
*dest = (a << 24 | r << 16 | g << 8 | b);

With these changes, gifs will animated correctly on large memory devices like Droid and Nexus One.

There's no code path for animating gifs in arbitrary applications like Gallery, except by rewriting it to host a
WebView modded as described above.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 方便快捷的调试 Node.js 程序
  2. 测试完,还有BUG,还是测试的责任?这锅我们
  3. 顶级在线设计工具收藏
  4. 删除 Linux 上 N 天以前的文件
  5. Mybatis中的多表查询
  6. 打卡学习 1-28
  7. 小白真能看一篇文章就学会全排列算法吗?
  8. 2021.1.28
  9. js002-getElementsByName,getElementById
  10. 分支语句