Created
February 21, 2019 11:14
-
-
Save salmaanahmed/ffbf72eb6087ccbae1abf1c3c13ac8b4 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
// With thumbnail url | |
Glide.with(context).load(url) | |
.thumbnail(Glide.with(context).load(thumbUrl)) | |
.apply(requestOptions).into(imageView) | |
// Without thumbnail url | |
// If you know thumbnail size | |
Glide.with(context).load(url) | |
.thumbnail(Glide.with(context).load(url).apply(RequestOptions().override(thumbSize))) | |
.apply(requestOptions).into(imageView) | |
// With size multiplier | |
Glide.with(context).load(url) | |
.thumbnail(0.25f) | |
.apply(requestOptions).into(imageView) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment