找回密码
 立即注册
TestGifclassbindrawable | android开发 2022-10-27 45 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
Android播放gif动画的两种方法:解码和逐帧播放在Android中是不支持直接使用Gif图像相关播放帧动画,Android提供了别的一种管理的方法,即是使用AnimationDrawable这一函数使其支持逐帧播放,可是如何把gif图像打散开来,变成每一帧的图像呢?大家看看源码就理解了。
TestGif\bin\com\xlm\testgif\GifActivity$1.class
TestGif\bin\com\xlm\testgif\GifActivity.class
TestGif\bin\com\xlm\testgif\GifDecoder.class
TestGif\bin\com\xlm\testgif\GifFrame.class
TestGif\bin\com\xlm\testgif\GifFrameActivity.class
TestGif\bin\com\xlm\testgif\GifView.class
TestGif\bin\com\xlm\testgif\MainActivity$MainListener.class
TestGif\bin\com\xlm\testgif\MainActivity.class
TestGif\bin\com\xlm\testgif\R$anim.class
TestGif\bin\com\xlm\testgif\R$attr.class
TestGif\bin\com\xlm\testgif\R$drawable.class
TestGif\bin\com\xlm\testgif\R$id.class
TestGif\bin\com\xlm\testgif\R$layout.class
TestGif\bin\com\xlm\testgif\R$string.class
TestGif\bin\com\xlm\testgif\R$style.class
TestGif\bin\com\xlm\testgif\R.class
TestGif\bin\classes.dex
TestGif\bin\resources.ap_
TestGif\bin\TestGif.apk
TestGif\gen\com\xlm\testgif\R.java
TestGif\res\anim\gif_one.xml
TestGif\res\drawable\gif10.png
TestGif\res\drawable\gif11.png
TestGif\res\drawable\gif12.png
TestGif\res\drawable\gif13.png
TestGif\res\drawable\test.gif
TestGif\res\drawable-hdpi\gif10.png
TestGif\res\drawable-hdpi\gif11.png
TestGif\res\drawable-hdpi\gif12.png
TestGif\res\drawable-hdpi\gif13.png
.....太多文件了省略.....

(There are two methods for Android to play gif animation: decoding and frame by frame playing. Android does not support playing frame animation directly using the Gif image. Android provides another management method, that is, using AnimationDraw to support frame by frame playing. But how to break up the gif image into images of each frame? You can understand the source code.
TestGif\bin\com\xlm\testgif\GifActivity$1.class
TestGif\bin\com\xlm\testgif\GifActivity.class
TestGif\bin\com\xlm\testgif\GifDecoder.class
TestGif\bin\com\xlm\testgif\GifFrame.class
TestGif\bin\com\xlm\testgif\GifFrameActivity.class
TestGif\bin\com\xlm\testgif\GifView.class
TestGif\bin\com\xlm\testgif\MainActivity$MainListener.class
TestGif\bin\com\xlm\testgif\MainActivity.class
TestGif\bin\com\xlm\testgif\R$anim.class
TestGif\bin\com\xlm\testgif\R$attr.class
TestGif\bin\com\xlm\testgif\R$drawable.class
TestGif\bin\com\xlm\testgif\R$id.class
TestGif\bin\com\xlm\testgif\R$layout.class
TestGif\bin\com\xlm\testgif\R$string.class
TestGif\bin\com\xlm\testgif\R$style.class
TestGif\bin\com\xlm\testgif\R.class
TestGif\bin\classes.dex
TestGif\bin\resources.ap_
TestGif\bin\TestGif.apk
TestGif\gen\com\xlm\testgif\R.java
TestGif\res\anim\gif_ one.xml
TestGif\res\drawable\gif10.png
TestGif\res\drawable\gif11.png
TestGif\res\drawable\gif12.png
TestGif\res\drawable\gif13.png
TestGif\res\drawable\test.gif
TestGif\res\drawable-hdpi\gif10.png
TestGif\res\drawable-hdpi\gif11.png
TestGif\res\drawable-hdpi\gif12.png
TestGif\res\drawable-hdpi\gif13.png
..... Too many files omitted)

[下载]11350962992.rar




上一篇:Android移动警务通
下一篇:Android+蓝牙的关闭、启动、配对过程