@Override public void onSucceed(int what, Response<Bitmap> response) { Bitmap bitmap = response.get(); if (bitmap == null) Logger.i("图片非空"); mImageView.setImageBitmap(bitmap); mStatus.setText("成功"); }
@Override public void onSucceed(int what, Response<Bitmap> response) { mImageView.setImageBitmap(response.get()); if (RequestMethod.HEAD == response.getRequestMethod()) { mTvResult.setText("请求成功, 请求方式为HEAD, 没有响应内容"); } else { mTvResult.setText("请求成功"); } }