替换优化后SVGA库
调整部分图片加载大小:如小图标没必要加载原图,设为32x32即可 更新kotlin和gradle依赖版本
This commit is contained in:
@@ -103,7 +103,9 @@ dependencies {
|
||||
api rootProject.ext.dependencies["gif-drawable"]
|
||||
|
||||
//svga播放器
|
||||
api rootProject.ext.dependencies["SVGAPlayer"]
|
||||
//api rootProject.ext.dependencies["SVGAPlayer"]
|
||||
implementation 'com.squareup.wire:wire-runtime:4.4.1'
|
||||
api files('libs/library-release.aar')
|
||||
|
||||
//七牛云存储
|
||||
api rootProject.ext.dependencies["qiniu-sdk"]
|
||||
|
||||
BIN
common/libs/library-release.aar
Normal file
BIN
common/libs/library-release.aar
Normal file
Binary file not shown.
@@ -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