1.gradle引入Fresco
compile 'com.facebook.fresco:fresco:0.11.0+'
2.在application中初始化Fresco
Fresco.initialize(this, ImagePipelineConfigFactory.getImagePipelineConfig(this));
3.PhotoDraweeView的下载地址
https://github.com/ongakuer/PhotoDraweeView
4.PhotoDraweeView结构
5.添加PhotoDraweeView控件
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="mat