diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index 2a46f90bf..9d6598143 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -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(); diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index 4aedb0d7a..2ca4ffa7c 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -2358,6 +2358,7 @@