From 218525d51c8cdb35b7b7039b2ad75fb8a8b0f3fe Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 31 Aug 2022 14:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=20=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E9=96=93UI=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/res/layout/item_sidebar_lives.xml | 2 +- .../res/mipmap-xxhdpi/bg_main_item_bottom.png | Bin 0 -> 4278 bytes .../live/activity/LiveAudienceActivity.java | 18 +++++++++--------- live/src/main/res/layout/view_live_room.xml | 6 ++---- 4 files changed, 12 insertions(+), 14 deletions(-) create mode 100644 common/src/main/res/mipmap-xxhdpi/bg_main_item_bottom.png diff --git a/common/src/main/res/layout/item_sidebar_lives.xml b/common/src/main/res/layout/item_sidebar_lives.xml index 081fae6d0..48875a68d 100644 --- a/common/src/main/res/layout/item_sidebar_lives.xml +++ b/common/src/main/res/layout/item_sidebar_lives.xml @@ -30,7 +30,7 @@ android:layout_width="match_parent" android:layout_height="25dp" android:layout_gravity="bottom" - android:background="#10000000" /> + android:background="@mipmap/bg_main_item_bottom" /> T3#E57rjlD(Gs#$xMP+CfrT2-U=9YbHoZNh#J3i0--sj$LPNMX6)gUxiX+R(lL_-~I2m+Bg0l4-8 z1t4F(QKbgHz>dl~${-BLg#S68TLGT)qyICVJDi6D7&rwmv5h;W0Y!1d8R}v{ zU>j>&J93Bn_EZ*R7cA*0XiTj1uc~7in9MFy-!s2U%PMl~5(dJpBhN2tc=5J2m)I2) zFP|zUToNIEgH89EF$<>*y{R5lN(m+_XP|Y*Nb@?HM?*zWNSKjXnnQqHLQzc_sc_RT zs>KupqI<1@RyOjVCh7NjtbAe-^JwOAiZlbOGlDcqmz8<~MkZp}t2bbi)8@|VmA55~ivHF7XCdT!4L@9Lom9e9Ts?tk_>FAhr z5nj-;3U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do>6hEPgm+i5Vk`X07^Z-ZO4;P$K!+&y*c0eMBWz9~m(fg;U=dJha%p(L3apJl;wr02vUv4}T zuuHXfc*RFW(kgB{%Uqm51955#q%yLeCl?7BGD8KE8CfIp$bEjK_8lFtL6?1nTdv2> z&Uee1{zVy!?4aYfr0oi(TY|o2CEOd;aI2J9%japuWY8`Lc?i*t1ar)ZQM$J<(GlBAC4N#g+&)CYEOF^KdmIq`Zf`=Uj^Pv_tu`>F7+5Eh0X;uG<6e` zGrJ?cp7Fx+xiVkUr&=r(c*2Nr#2%ax4?ivRo*K{PTOu$-S=G=)_XBLCv4q zlC_3ZNSpuA(R;7>^+TQ(l+ZVagZ#7lQJy%Y;1# zYogv&)Gc{-*70ULP1W1{w&r~I$#u*!YU);~^j{?igV6hg%V&<}ya{>FrRbWGjv zu4X4We0M+SyXUpc-4_^S-kP|-zKqO3#z56sl6AOHXW literal 0 HcmV?d00001 diff --git a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java index ec9275a78..a6a2bb6f4 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java @@ -255,7 +255,14 @@ public class LiveAudienceActivity extends LiveActivity { } else { liveHandler.post(liveRunnable); } - + Log.e("收到socket--->", "mLiveUid--------------------------->" + mLiveUid); + //加载当前页面数据 + View rootView = manager.getRootView(); + if (rootView.getParent() != null && rootView.getParent() instanceof ViewGroup) { + ((ViewGroup) (rootView.getParent())).removeView(rootView); + manager.onRemove(); + } + mViewGroup.addView(manager.getRootView()); } //获取直播间状态 @@ -294,14 +301,7 @@ public class LiveAudienceActivity extends LiveActivity { mAncherName = liveBean1.getUserNiceName(); mAncherIcon = liveBean1.getAvatar(); - Log.e("收到socket--->", "mLiveUid--------------------------->" + mLiveUid); - //加载当前页面数据 - View rootView = manager.getRootView(); - if (rootView.getParent() != null && rootView.getParent() instanceof ViewGroup) { - ((ViewGroup) (rootView.getParent())).removeView(rootView); - manager.onRemove(); - } - mViewGroup.addView(manager.getRootView()); + manager.onAdd(liveBean1, liveType, liveTypeVal, liveSdk); }); diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index 6a6fd9045..5197283d9 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -150,11 +150,9 @@