|
|
@@ -80,10 +80,17 @@ public class GlideImageLoader {
|
|
|
.into(imageView);
|
|
|
}
|
|
|
public static void setGameImage(ImageView imageView, String url) {
|
|
|
- Glide.with(SheepApp.getInstance())
|
|
|
- .load(url)
|
|
|
- .apply(new RequestOptions().centerCrop().transform(new RoundedCorners(imageView.getResources().getDimensionPixelSize(R.dimen.content_padding_10))).placeholder(R.drawable.loading_01))
|
|
|
- .into(imageView);
|
|
|
+ if(url.endsWith(".gif")){//gif图片不做任务处理
|
|
|
+ Glide.with(SheepApp.getInstance())
|
|
|
+ .load(url)
|
|
|
+ .apply(new RequestOptions().placeholder(R.drawable.loading_01))
|
|
|
+ .into(imageView);
|
|
|
+ } else {
|
|
|
+ Glide.with(SheepApp.getInstance())
|
|
|
+ .load(url)
|
|
|
+ .apply(new RequestOptions().centerCrop().transform(new RoundedCorners(imageView.getResources().getDimensionPixelSize(R.dimen.content_padding_10))).placeholder(R.drawable.loading_01))
|
|
|
+ .into(imageView);
|
|
|
+ }
|
|
|
}
|
|
|
public static void setGameImage(ImageView imageView, String url, int radius) {
|
|
|
Glide.with(SheepApp.getInstance())
|