替换优化后SVGA库
调整部分图片加载大小:如小图标没必要加载原图,设为32x32即可 更新kotlin和gradle依赖版本
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -13,6 +13,7 @@ public class SVGAViewUtils {
|
||||
|
||||
@Override
|
||||
public void onFinished() {
|
||||
//动画结束后调用clear释放资源
|
||||
svga.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user