use of com.facebook.imagepipeline.core.ImagePipelineConfig in project SherlockAdapter by EvilBT.
the class MainApplication method onCreate.
@Override
public void onCreate() {
super.onCreate();
ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this).setDownsampleEnabled(true).build();
Fresco.initialize(this, config);
}
use of com.facebook.imagepipeline.core.ImagePipelineConfig in project GalleryFinal by pengjianbo.
the class MainActivity method initFresco.
private void initFresco() {
ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this).setBitmapsConfig(Bitmap.Config.ARGB_8888).build();
Fresco.initialize(this, config);
}
use of com.facebook.imagepipeline.core.ImagePipelineConfig in project fresco by facebook.
the class ImagePipelineConfigFactory method getOkHttpImagePipelineConfig.
/**
* Creates config using OkHttp as network backed.
*/
public static ImagePipelineConfig getOkHttpImagePipelineConfig(Context context) {
if (sOkHttpImagePipelineConfig == null) {
OkHttpClient okHttpClient = new OkHttpClient.Builder().addNetworkInterceptor(new StethoInterceptor()).build();
ImagePipelineConfig.Builder configBuilder = OkHttpImagePipelineConfigFactory.newBuilder(context, okHttpClient);
configureCaches(configBuilder, context);
configureLoggingListeners(configBuilder);
sOkHttpImagePipelineConfig = configBuilder.build();
}
return sOkHttpImagePipelineConfig;
}
use of com.facebook.imagepipeline.core.ImagePipelineConfig in project fresco by facebook.
the class AnimationApplication method onCreate.
@Override
public void onCreate() {
super.onCreate();
FLog.setMinimumLoggingLevel(FLog.VERBOSE);
Set<RequestListener> listeners = new HashSet<>();
listeners.add(new RequestLoggingListener());
ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this).setRequestListeners(listeners).build();
Fresco.initialize(this, config);
}
use of com.facebook.imagepipeline.core.ImagePipelineConfig in project fresco by facebook.
the class ZoomableApplication method onCreate.
@Override
public void onCreate() {
super.onCreate();
FLog.setMinimumLoggingLevel(FLog.VERBOSE);
Set<RequestListener> listeners = new HashSet<>();
listeners.add(new RequestLoggingListener());
ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this).setRequestListeners(listeners).build();
Fresco.initialize(this, config);
}
Aggregations