替换优化后SVGA库

调整部分图片加载大小:如小图标没必要加载原图,设为32x32即可
更新kotlin和gradle依赖版本
This commit is contained in:
2022-09-13 17:15:33 +08:00
parent dd39064ca5
commit 7d72a65f89
14 changed files with 38 additions and 20 deletions

View File

@@ -69,6 +69,13 @@ public class ImgLoader {
display2(context, url, imageView, -1, -1);
}
/**
* 手动清空内存
*/
public static void clearMemory(Context context){
Glide.get(context)
.clearMemory();
}
public static void display2(Context context, String url, ImageView imageView, int width, int height) {
if (!contextIsExist(context)) {
return;

View File

@@ -13,6 +13,7 @@ public class SVGAViewUtils {
@Override
public void onFinished() {
//动画结束后调用clear释放资源
svga.clear();
}