public void setImage(final Context ctx, final String image) {
final ImageView product_image = (ImageView) mView.findViewById(R.id.product_image);
Picasso.with(ctx).load(image).networkPolicy(NetworkPolicy.OFFLINE).into(product_image, new Callback() {
@Override
public void onSuccess() {
Log.d(TAG, "image loading success !");
}
@Override
public void onError() {
Log.d(TAG, "image loading error !");
Picasso.with(ctx)
.load(image)
.resize(90, 90)
.centerCrop()
.into(product_image);
}
});
}
ProfileActivity.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:FaceT
作者:
评论列表
文章目录