1. 程式人生 > >自定義快取路徑

自定義快取路徑

DiskCacheConfig diskCacheConfig = DiskCacheConfig.newBuilder(this)                 .setBaseDirectoryName("images_zz")                 .setBaseDirectoryPath(Environment.getExternalStorageDirectory())                 .build();         ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this)                 .setMainDiskCacheConfig(diskCacheConfig)                 .build();         Fresco.initialize(this,config);