|
|
@@ -14,6 +14,7 @@ import com.bumptech.glide.request.RequestListener;
|
|
|
import com.bumptech.glide.request.RequestOptions;
|
|
|
import com.sheep.gamegroup.util.glide.BlurTransformation;
|
|
|
import com.sheep.gamegroup.util.glide.GlideCircleTransformWithBorder;
|
|
|
+import com.sheep.gamegroup.util.glide.RoundedCornersTransformation;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.ClassFileHelper;
|
|
|
@@ -90,14 +91,14 @@ public class GlideImageLoader {
|
|
|
public static void roundedCornersImage(ImageView imageView, String url, int radius, int id) {
|
|
|
Glide.with(SheepApp.getInstance())
|
|
|
.load(url)
|
|
|
- .apply(new RequestOptions().transform(new RoundedCorners(radius)).placeholder(id))
|
|
|
+ .apply(new RequestOptions().transform(new RoundedCornersTransformation(radius, 0)).placeholder(id))
|
|
|
.into(imageView);
|
|
|
}
|
|
|
|
|
|
public static void roundedCornersImage(ImageView imageView, String url, int radius) {
|
|
|
Glide.with(SheepApp.getInstance())
|
|
|
.load(url)
|
|
|
- .apply(new RequestOptions().transform(new RoundedCorners(radius)).placeholder(R.drawable.loading_01))
|
|
|
+ .apply(new RequestOptions().transform(new RoundedCornersTransformation(radius, 0)).placeholder(R.drawable.loading_01))
|
|
|
.into(imageView);
|
|
|
}
|
|
|
public static void roundedCornersImage1(ImageView imageView, String url, int radius) {
|