Glide 4.3.1 override and placeholder features not work
You should use RequestOptions
Includes methods like:
- centerCrop()
- placeholder()
- error()
- priority()
- diskCacheStrategy()
- priority()
- override(100, 100)
- transforms()
Sample code
Glide.with(this)
.load(YOUR_URL)
.apply(new RequestOptions().override(100, 100).placeholder(R.drawable.placeHolder).error(R.drawable.error_pic))
.into(imageview);
Try This
Glide.with(this)
.load(imageUrl)
.apply(new RequestOptions().placeholder(R.drawable.ic_launcher).override(200, 200))
.into(ivAvatar);