PicassoImageLoader.java 文件源码

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

项目:GalleryPicker 作者:
@Override
    public void displayCenterCrop(Context context, String path, ImageView imageView, Drawable defaultDrawable,
                                  Bitmap.Config config, boolean resize, int width, int height) {
        RequestCreator creator = Picasso.with(context)
                .load(new File(path))
                .placeholder(defaultDrawable)
                .error(defaultDrawable)
//                .rotate(rotate)
                .networkPolicy(NetworkPolicy.NO_STORE)
                .config(config)
                .tag(context);
        if (resize) {
            creator = creator.resize(width, height);
        }
        creator.centerCrop();
        creator.into(imageView);
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号