automatically load placeholder when loading empty or null URI
See original GitHub issueUsing the following code
imageView.load(url) {
placeholder(R.drawable.image)
}
If the url
is empty or null then it would be great if the placeholder is loaded automatically.
It doesn’t seem to do that currently.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Set an image if Uri is empty - android - Stack Overflow
If imageUrl is there then it will show otherwise it will take placeHolder image. Glide.with(context) .load(imageUrl) .
Read more >Picasso — How to Deal with Null/Empty Values (in ListViews)
In this blog post, we'll show you how to deal with null values, especially in ListViews, where the re-usage of views can lead...
Read more ><input>: The Input (Form Input) element - HTML
The <input> HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide...
Read more >Displaying Images with the Glide Library - CodePath Cliffnotes
It provides animated GIF support and handles image loading/caching. ... Glide.with(context) .load("http://via.placeholder.com/300.png") .into(ivImg);.
Read more >Loading Image with Glide in Android - Section.io
In this tutorial, we will learn how to use the Glide library to load images either from the internet (URL) or from Drawable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can also use:
to set a fallback drawable if the url is null.
@mario @colinrtwhite Sorry for the late reply. I’ve found there were similar request and discussions in the past.
fallback
seems to be what I’ve been looking for so okay to close.