Image is not loaded using Glide

半腔热情 提交于 2019-12-06 10:50:13

Glide doesn't support vector drawables yet. So implementing vector drawables you have to do yourself. For reference you can check below links for this issue reported by developers on github:

link 1
link 2

You can use like this.

Glide.with(this)
    .load("")
    .placeholder(R.drawable.vector_image)
    .into(imageView);

EDIT

You can also use it like this as mentioned on issue

Glide.with(mContext) .load("") .error(R.drawable.vector_image) .into(imageView);

Try this this working fine.

Glide.with(GlideActivity.this).load(R.drawable.ic_launcher)
                    .fitCenter().into(imageview);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!