Glide v4中的占位符/错误/后退

Saf*_*eer 7 android placeholder android-glide

我正在使用最新版本的Glide,现在滑行:4.0.0-RC1并且无法找到占位符,错误,后备等方法可能他们已经为它提供了备用但我没有得到它.有人知道这个版本中有替代品吗?

Ous*_*oua 10

试试这个

RequestOptions requestOptions = new RequestOptions();
requestOptions.placeholder(R.mipmap.ic_launcher);
requestOptions.error(R.drawable.error_img);

Glide.with(this)
                .setDefaultRequestOptions(requestOptions)
                .load("")
                .into(imageViewPlaceholder);
Run Code Online (Sandbox Code Playgroud)