Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created August 1, 2021 11:19
Show Gist options
  • Save skydoves/7f2d6f10ce66609386cc46eab585fc87 to your computer and use it in GitHub Desktop.
Save skydoves/7f2d6f10ce66609386cc46eab585fc87 to your computer and use it in GitHub Desktop.
FrescoApp
class App : Application() {
override fun onCreate() {
super.onCreate()
val pipelineConfig =
OkHttpImagePipelineConfigFactory
.newBuilder(this, OkHttpClient.Builder().build())
.setDiskCacheEnabled(true)
.setDownsampleEnabled(true)
.setResizeAndRotateEnabledForNetwork(true)
.build()
Fresco.initialize(this, pipelineConfig)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment