1:修改转盘去掉了特效还又声音
2:修改巡乐会去掉跳过动画, 3:修改巡乐会结果页面,进行展示,不在关联抽奖
This commit is contained in:
@@ -397,6 +397,7 @@ public class AvatarFrameView extends FrameLayout {
|
||||
if (cachedEntity != null) {
|
||||
// 使用缓存的实体
|
||||
playCachedSVGA(cachedEntity);
|
||||
return;
|
||||
} else {
|
||||
// 加载新的SVGA
|
||||
loadNewSVGA(url);
|
||||
@@ -406,47 +407,47 @@ public class AvatarFrameView extends FrameLayout {
|
||||
isPlaying = false;
|
||||
}
|
||||
|
||||
svgaSurface.setVisibility(View.VISIBLE);
|
||||
try {
|
||||
new SVGAParser(getContext()).parse(new URL(url), new SVGAParser.ParseCompletion() {
|
||||
@Override
|
||||
public void onComplete(SVGAVideoEntity videoItem) {
|
||||
SVGADrawable drawable = new SVGADrawable(videoItem, new SVGADynamicEntity());
|
||||
svgaSurface.setImageDrawable(drawable);
|
||||
svgaSurface.setCallback(new SVGACallback() {
|
||||
|
||||
@Override
|
||||
public void onStep(int i, double v) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRepeat() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinished() {
|
||||
isPlaying = false;
|
||||
}
|
||||
});
|
||||
|
||||
svgaSurface.startAnimation();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError() {
|
||||
isPlaying = false;
|
||||
}
|
||||
});
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// svgaSurface.setVisibility(View.VISIBLE);
|
||||
// try {
|
||||
// new SVGAParser(getContext()).parse(new URL(url), new SVGAParser.ParseCompletion() {
|
||||
// @Override
|
||||
// public void onComplete(SVGAVideoEntity videoItem) {
|
||||
// SVGADrawable drawable = new SVGADrawable(videoItem, new SVGADynamicEntity());
|
||||
// svgaSurface.setImageDrawable(drawable);
|
||||
// svgaSurface.setCallback(new SVGACallback() {
|
||||
//
|
||||
// @Override
|
||||
// public void onStep(int i, double v) {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onRepeat() {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onPause() {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onFinished() {
|
||||
// isPlaying = false;
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// svgaSurface.startAnimation();
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onError() {
|
||||
// isPlaying = false;
|
||||
// }
|
||||
// });
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user