使用Fresco注意的问题
来源:互联网 发布:2017淘宝网双11销量 编辑:程序博客网 时间:2024/05/02 02:06
引入Fresco
https://www.fresco-cn.org/docs/index.html
编辑 build.gradle 文件:
dependencies { // 其他依赖 compile 'com.facebook.fresco:fresco:1.2.0'}
下面的依赖需要根据需求添加:
dependencies { // 在 API < 14 上的机器支持 WebP 时,需要添加 compile 'com.facebook.fresco:animated-base-support:1.2.0' // 支持 GIF 动图,需要添加 compile 'com.facebook.fresco:animated-gif:1.2.0' // 支持 WebP (静态图+动图),需要添加 compile 'com.facebook.fresco:animated-webp:1.2.0' compile 'com.facebook.fresco:webpsupport:1.2.0' // 仅支持 WebP 静态图,需要添加 compile 'com.facebook.fresco:webpsupport:1.2.0'}
问题
最近在做添加gif动画需要,使用fresco加载gif图,但一直是显示静态的图片(也就是 gif的第一帧图)。被这个问题卡了大半天,之后,重新看了下官网文档,找到了解决方案。
既然还有按需添加功能的,加上支持gif的依赖就可以了。
compile 'com.facebook.fresco:animated-gif:1.2.0'
0 0
- 使用Fresco注意的问题
- Fresco使用注意点
- 使用Fresco出现的问题
- Fresco的使用碰到问题
- Google Fresco 的使用解决各种问题
- Fresco的使用
- Fresco的简单使用
- Fresco的使用
- Fresco的初步使用
- Fresco的使用
- Fresco的使用<一>
- Fresco的简单使用
- Fresco的使用
- 框架Fresco的使用
- Fresco的基本使用
- Fresco的使用
- Fresco的使用
- fresco的初次使用
- 使用python爬取百度百科python词条相关的1000个网页的标题和简介
- java单例和静态类区别
- Oracle数据库instr函数的应用
- Amlogic读写I2C测试节点
- andoird gradle 渠道包
- 使用Fresco注意的问题
- ViewPager无限轮播
- SerializeField 序列化域结合HideInInspector的使用
- 资源|17类对抗网络经典论文及开源代码(附源码)
- while loading shared libraries:libncurses.so.5问题
- 安卓 -- 微信分享集成
- 如何阻止h5body的滑动
- 1.0 在eclipse中使用maven创建springMVC项目
- 使用jQuery Datatable 遇到的问题