心愿单修改,
This commit is contained in:
parent
af164f549f
commit
63c2891650
@ -584,6 +584,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
private Runnable xydCompleteRunnable = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
xydSvg.setVisibility(View.GONE);
|
||||
if (xydCompleteModels.size() > 0)
|
||||
showXydComplete(xydCompleteModels.get(0));
|
||||
}
|
||||
@ -608,6 +609,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
} else {
|
||||
try {
|
||||
xydSvg.setLoops(1);
|
||||
xydSvg.setVisibility(View.VISIBLE);
|
||||
new SVGAParser(Contexts).parse(new URL(model.getSvg()), new SVGAParser.ParseCompletion() {
|
||||
@Override
|
||||
public void onComplete(SVGAVideoEntity videoItem) {
|
||||
@ -615,11 +617,13 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
xydSvg.setImageDrawable(drawable);
|
||||
|
||||
SVGAViewUtils.playEndClear(xydSvg);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError() {
|
||||
}
|
||||
|
||||
});
|
||||
} catch (MalformedURLException e) {
|
||||
e.printStackTrace();
|
||||
|
@ -2358,6 +2358,7 @@
|
||||
|
||||
<com.opensource.svgaplayer.SVGAImageView
|
||||
android:id="@+id/xyd_svg"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitCenter" />
|
||||
|
Loading…
Reference in New Issue
Block a user