Merge remote-tracking branch 'origin/master'

This commit is contained in:
18142669586
2022-09-28 16:26:13 +08:00
36 changed files with 173 additions and 91 deletions

View File

@@ -4,7 +4,7 @@ import com.opensource.svgaplayer.SVGACallback;
import com.opensource.svgaplayer.SVGAImageView;
public class SVGAViewUtils {
public static void playEndClear(SVGAImageView svga){
public static void playEndClear(SVGAImageView svga,boolean isClear){
svga.setCallback(new SVGACallback() {
@Override
public void onPause() {
@@ -14,7 +14,9 @@ public class SVGAViewUtils {
@Override
public void onFinished() {
//动画结束后调用clear释放资源
svga.clear();
if(isClear) {
svga.clear();
}
}
@Override
@@ -29,4 +31,7 @@ public class SVGAViewUtils {
});
svga.startAnimation();
}
public static void playEndClear(SVGAImageView svga){
playEndClear(svga,true);
}
}

View File

@@ -22,7 +22,7 @@ public class CustomViewHolder implements BannerViewHolder<BannerBean> {
imageView.setLayoutParams(params);
imageView.setScaleType(ImageView.ScaleType.FIT_XY);
//Glide.with(context).load(data.getImageUrl()).into(imageView);
ImgLoader.display(context,data.getImageUrl(),imageView,600,170);
ImgLoader.display(context,data.getImageUrl(),imageView);
return imageView;
}