我使用的是当前最新的Glide4.8.0的版本,想要设置在加载图片过程中显示默认图片的功能,网上查到的设置placeholder,但实际发现这个属性爆红无法使用。
解决方案:
Glide
.with(this)
.load(PHOTO_URL)
.apply(new RequestOptions().placeholder(R.drawable.nav_icon))
.into(mIvUserPhoto);
我使用的是当前最新的Glide4.8.0的版本,想要设置在加载图片过程中显示默认图片的功能,网上查到的设置placeholder,但实际发现这个属性爆红无法使用。
解决方案:
Glide
.with(this)
.load(PHOTO_URL)
.apply(new RequestOptions().placeholder(R.drawable.nav_icon))
.into(mIvUserPhoto);