Created
February 21, 2019 11:02
-
-
Save salmaanahmed/af790750870330f3fc47dbc908a70336 to your computer and use it in GitHub Desktop.
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
val requestOptions = RequestOptions() | |
.diskCacheStrategy(DiskCacheStrategy.ALL) | |
.signature(ObjectKey(signature)) | |
.override(100, 100) // resize does not respect aspect ratio | |
Glide.with(context).load(url).apply(requestOptions).into(imageView) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment