Created
July 10, 2018 02:54
-
-
Save lekaha/3f81243288eacfdaf4e6ce7fbef973c0 to your computer and use it in GitHub Desktop.
Glide using tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GlideModule | |
class MyAppGlideModule: AppGlideModule() { | |
override fun applyOptions(context: Context, builder: GlideBuilder) { | |
super.applyOptions(context, builder) | |
builder.setDefaultRequestOptions( | |
RequestOptions() | |
.format(DecodeFormat.PREFER_ARGB_8888) | |
.diskCacheStrategy(DiskCacheStrategy.DATA) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment