question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for applying transformation placeholder/error drawables

See original GitHub issue

Is your feature request related to a problem? Please describe. Suppose an ImageView showing the user’s avatar. The user’s avatar is loaded with a placeholder and has the CircleCropTransformation transformation applied to it. The placeholder will not be round which may cause the app to not look right on places where the avatar is expected to always be a circle.

Describe the solution you’d like It should be possible to apply tranformations to the placeholder/error drawable as well. This could either be something like transformationsPlaceholder(...) or enablePlaceholderTransformations(true).

Another option would be to provide an overload on placeholder that accepts a RequestDisposable as an argument (similar to how Glide does it). This would also solve #27.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:46
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
gowthamgtscommented, Nov 21, 2020

any updates on chaining requests? would love to have it.

7reactions
Qdafengzicommented, Nov 29, 2021

so long time never update, lose hope

Read more comments on GitHub >

github_iconTop Results From Across the Web

Placeholders - Glide v4 - GitHub Pages
Placeholders are Drawables that are shown while a request is in progress. When a request completes successfully, the placeholder is replaced with the...
Read more >
Glide-4.0.0 Missing placeholder, error, GlideApp and does not ...
Try using RequestOptions: RequestOptions requestOptions = new RequestOptions(); requestOptions.placeholder(R.drawable.ic_placeholder); ...
Read more >
Displaying Images with the Glide Library - CodePath Cliffnotes
Open up your static placeholder or error images and make sure their dimensions are relatively small (< 500px width). If not, resize those...
Read more >
How to Use Glide Image Loader Library in Android Apps?
.placeholder(R.drawable.placeholder) .into(imageView);. If your application relies on remote assets, then it's important to add a fallback ...
Read more >
Picasso — Placeholders, Errors, and Fading - Future Studio
Picasso's fluent interface makes this very easy to do! Just call .placeHolder() with a reference to a drawable (resource) and Picasso will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found