最大的不同,就是曾经的链式调用现在需要放在了RequestOptions中,eg: final RequestOptions options = new RequestOptions(); options.centerCrop() .skipMemoryCache(true) .diskCacheStrategy(DiskCacheStrategy.NONE) .bitmapTransform(new CircleCrop()) .placeholder(R.drawable.__picker_ic_photo_black_48dp) .error(R.drawable.__picker_ic_broken_image_black_48dp); Glide.with(getActivity()).load(MyApplication.imageUrl).apply(options).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(iv_avtor);
Glide4.4的用法
最新推荐文章于 2024-09-19 15:24:52 发布