Fresco

标签: Fresco

facebook图片加载框架Fresco入门教程

在gradle中导入fresco库(切记关掉本地缓存,不然下载不了setting->gradle->offline work不要勾选) compile 'com.facebook.fresco:fresco:0.8.0+' 在manifest中加入权限 设置application public class MainApplication extends Application { @Override public void onCreate() { super.onCreate(); Fresco.initialize(this); } } 布局文件和activity文件: public class MainActivity extends Activity { private SimpleDraweeView view; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(

阅读全文...