From 63c289165050f0e43d01d3b51bb1bee6e86ad5f6 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Fri, 7 Apr 2023 16:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E6=84=BF=E5=8D=95=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 4 ++++ live/src/main/res/layout/view_live_room.xml | 1 + 2 files changed, 5 insertions(+) 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 @@