public void showImage(final Picasso picasso, final Uri uri, CalculatedDimensions dimensions) {
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 = dimensions.rawImageWidth;
this.rawImageHeight = dimensions.rawImageHeight;
this.viewHeight = dimensions.viewHeight;
this.viewWidth = dimensions.viewWidth;
startImageLoading(picasso, uri, viewWidth, rawImageWidth, rawImageHeight);
}
FixedWidthImageView.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:belvedere
作者:
评论列表
文章目录