HOWAREYOUIAMFINE commented on issue #3188:
URL: https://github.com/apache/incubator-weex/issues/3188#issuecomment-618135624
@MagicLinuxRing
**Have you configured the placeholder fields in your android ImageAdapter?**
if you use **Glide** as you image adapter, I can provide you some code
snippets.
```Java
public void setImage(final String url, final ImageView view,
WXImageQuality quality, final WXImageStrategy
strategy) {
WXSDKManager.getInstance().postOnUiThread(new Runnable() {
@Override
public void run() {
if (view == null || view.getLayoutParams() == null) {
return;
}
if (TextUtils.isEmpty(url)) {
view.setImageBitmap(null);
return;
}
if (!TextUtils.isEmpty(strategy.placeHolder)) {
RequestBuilder<Drawable> thumbnailRequest =
Glide.with(WXApplication.getWxApplication()).load(strategy.placeHolder);
GlideApp.with(WXApplication.getWxApplication())
.load(url)
.thumbnail(thumbnailRequest)
.into(view);
} else {
GlideApp.with(WXApplication.getWxApplication())
.load(url)
.into(view);
}
}
}, 0);
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]