
Fresco新特性
Fresco 是facebook的一个强大的图片加载组件,本专栏通过解析Fresco的各种新的特性,如(loading效果,圆角等)
ZeroFlutter
日活百万级 App 负责人,懂点技术,懂点产品,还懂点广告运营。看着懂的很多,其实不懂的更多。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Fresco(各种特效)——Loading效果
xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:fresco="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"原创 2015-04-15 16:06:56 · 4739 阅读 · 1 评论 -
Fresco(各种特效)——播放gif
xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:fresco="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"原创 2015-04-15 12:36:34 · 11111 阅读 · 5 评论 -
Fresco(各种特效)——缩放
缩放 类型 描述 center 居中,无缩放 centerCrop 保持宽高比缩小或放大,使得两边都大于或等于显示边界。居中显示。 focusCrop 同centerCrop, 但居中点不是中点,而是指定的某个点 centerInside 使两边都在显示边界内,居中显示。如果图尺寸大于显示边界,则保持长宽比缩小图片。 fitCenter 保持宽高比,缩小或原创 2015-04-14 17:55:47 · 4682 阅读 · 0 评论 -
Fresco(各种特效)——圆角
在xml中设置 //设置圆角度数fresco:roundedCornerRadius="50dp"//设置左下角不进行圆角化fresco:roundBottomLeft="false"//设置右下角不进行圆角化fresco:roundBottomRight="false"//填充颜色(黄色**看下图)fresco:roundWithOverlayColor="#FFFF23"//边原创 2015-04-14 17:42:49 · 9264 阅读 · 0 评论 -
Fresco—支持的URIs
Fresco 支持许多URI格式 **特别注意:Fresco 不支持 相对路径的URI. 所有的URI都必须是绝对路径,并且带上该URI的scheme。如下: 类型 格式 网络图片 http://, https:// 本地文件 file:// Content provider content:// asset目录下的资源 asset:// res目录下的资原创 2015-04-14 11:55:51 · 2909 阅读 · 1 评论 -
Fresco 初体验各种问题解决
Fresco 初体验各种问题解决xmlns:fresco="http://schemas.android.com/apk/res-auto"显示为灰色,没有应用到 解决办法 把引用图片的方式(src)改为:fresco:placeholderImage 初始化位置错误Error inflating class com.facebook.drawee.view.SimpleDrawe原创 2015-04-13 11:27:26 · 21597 阅读 · 18 评论