ImageViewAction.java 文件源码

java
阅读 35 收藏 0 点赞 0 评论 0

项目:GitHub 作者:
@Override public void error(Exception e) {
  ImageView target = this.target.get();
  if (target == null) {
    return;
  }
  Drawable placeholder = target.getDrawable();
  if (placeholder instanceof AnimationDrawable) {
    ((AnimationDrawable) placeholder).stop();
  }
  if (errorResId != 0) {
    target.setImageResource(errorResId);
  } else if (errorDrawable != null) {
    target.setImageDrawable(errorDrawable);
  }

  if (callback != null) {
    callback.onError(e);
  }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号