public void showImage(final Picasso picasso, final Uri uri, long rawImageWidth, long rawImageHeight,
DimensionsCallback dimensionsCallback) {
if(uri == null || uri.equals(this.uri)) {
L.d(LOG_TAG, "Image already loaded. " + uri);
return;
}
// cancel running picasso operations
if(this.picasso != null) {
this.picasso.cancelRequest((Target) this);
this.picasso.cancelRequest((ImageView) this);
}
this.uri = uri;
this.picasso = picasso;
this.rawImageWidth = (int) rawImageWidth;
this.rawImageHeight = (int) rawImageHeight;
this.dimensionsCallback = dimensionsCallback;
if(viewWidth > 0) {
startImageLoading(picasso, uri, viewWidth, this.rawImageWidth, this.rawImageHeight);
} else {
imageWaiting.set(true);
}
}
FixedWidthImageView.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:belvedere
作者:
评论列表
文章目录