麦位光圈svga 循环模式修改
This commit is contained in:
@@ -312,7 +312,6 @@ public class MicroView extends FrameLayout implements View.OnLayoutChangeListene
|
||||
} else {
|
||||
if (speakState.isAnimating()) continue;
|
||||
try {
|
||||
speakState.setLoops(-1);
|
||||
speakState.setFillMode(SVGAImageView.FillMode.Clear);
|
||||
SVGAParser.ParseCompletion parseCompletion = new SVGAParser.ParseCompletion() {
|
||||
@Override
|
||||
@@ -328,8 +327,10 @@ public class MicroView extends FrameLayout implements View.OnLayoutChangeListene
|
||||
}
|
||||
};
|
||||
if (isSingleAnchor) {
|
||||
speakState.setLoops(-1);
|
||||
SVGAParser.Companion.shareParser().decodeFromAssets("svga/single_headware.svga", parseCompletion, null);
|
||||
} else {
|
||||
speakState.setLoops(1);
|
||||
SVGAParser.Companion.shareParser().decodeFromURL(new URL(micCircle), parseCompletion, null);
|
||||
}
|
||||
} catch (MalformedURLException e) {
|
||||
|
Reference in New Issue
Block a user