From 192b0cb417d0066e44ba8c524eb72a5090d3ac8e Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 25 Oct 2023 10:09:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E9=81=8A=E6=88=B2=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../res/drawable/background_live_sud_hint.png | Bin 0 -> 6630 bytes .../yunbao/live/views/LiveRoomViewHolder.java | 14 +++--- live/src/main/res/layout/view_live_room.xml | 40 +++++++++++------- 3 files changed, 33 insertions(+), 21 deletions(-) create mode 100644 common/src/main/res/drawable/background_live_sud_hint.png diff --git a/common/src/main/res/drawable/background_live_sud_hint.png b/common/src/main/res/drawable/background_live_sud_hint.png new file mode 100644 index 0000000000000000000000000000000000000000..e98cf1c4801b5d766f6dc89ebfd55a2d58dcf52f GIT binary patch literal 6630 zcmeHM_dlC`xR%(YHW8!tC^Z_hS`xdl8b!TDtfIUXqef~*j9OI{6jh^Ctr|s9igajE zqo~@m)UMhy$#F(;{)O{7zkHwPm;3(QZ{8QH%xZef0e7{NUGFBdME=cv_{cvxWkcAt$-;tCqq)cuye&yPh- zu4Sj;naEom9hpw()prZijXHgpcGs<+!uJq0JO7#{-!wO{*dY`~0i+ZBuR~rJsQid2++lOqUJ%M1 z*V!5Ku-51y$*=dI`d;wwI!S zt)f)QY|v^mm)%-z(KJBdZ`^PSTnx3*n7SKHLcrvwWnr>}LPTN_?QgP9Kl|W=p@aQ7 zpS&L$Vjri?s@`S{I7Hkd&$M;lYIS9!z>s%aG*)*qgM!e|I#fK@de+NgP5_VOqAu=P|nUzln1uVfN3Kw{(@Ej zBgz!^vDld5or;ko;hN@r&pGgaSK&WPp(8#uGkXJwRPdZ=vWZJhZCiQP_W1xjyVq-H zKHn`94ZJ;F*L-jF5(KRwohKXPaal~V6B*ai^m#|gxlJ9APn{I<)J^tpUBloKI7B{0 zsI$fE*O>#!GK$T@h1WHnn`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-~8Y)f&cN6%Vc_4d+;ZuaCuzSFY_OgSKQ0LjDR81@H~fYFVV}-r)n+j5@Oi zB`<;dqu84R944$KnNTODX`Y1U3zS5EB^X(194ZTk5(6r5!8M+@tdU_c4jt&w(Vdvpp@`2x*5q@$32g-KTMGEZ2x+m!V{#5E0#qYDRD+S5-6}`E-Z_?cL)6mgU@PMMW+>e=yiI9s z9ROipDP5J(BqoKIBt=xZ_@ocLzHRX1CQN3&`>3QUI)1(4cy$fyp*dhl3*cZ^r53fF|EVhor5q z!Uw+lkLBfz&gs*E;PtNeuI~59!Mc*UN*-E!2jAzO@P0-SU%@fX%YUIA&{Douu5~-TVl+x zQMW>evrW|@ziaS~)v=F889^(xRb{nL$hTk#uXwkS>s}tJtMjY+={Sebnua*N7eW&n zT-u;WE(^8xuK!mAqH06z>OaBXZcUi&TjGmXo}@AmKG~lLcT;&Dd>mul>_XC)?~DDG zYm3pbx!$6btiEiCwKma+5<7u#fqZC--q1} z(BaZMVvr%}TT7=m@uAmY&Ce4N_cmD(bMrc-v|Gkn&^~k*@yoJpPb9x literal 0 HcmV?d00001 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 569ca21f7..3fe10691e 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -636,26 +636,28 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } private TextView sud_text_name; + private LinearLayout sud_layout_name; private Handler sudNameHandler = new Handler(); private Runnable sudNameRunnable = new Runnable() { @Override public void run() { - if (sud_text_name != null) { - sud_text_name.setVisibility(View.GONE); + if (sud_layout_name != null) { + sud_layout_name.setVisibility(View.GONE); } } }; public void setSudName(String sudName) { - sud_text_name = (TextView) findViewById(com.yunbao.common.R.id.sud_text_name); + sud_text_name = (TextView) findViewById(R.id.sud_text_name); + sud_layout_name = (LinearLayout) findViewById(R.id.sud_layout_name); sud_text_name.setText(WordUtil.isNewZh() ? String.format("主播创建了【%s】房间,快来与主播同玩~", sudName) : String.format("The anchor has created a 【%s】 room. Come and play with the anchor~", sudName)); - sud_text_name.setVisibility(View.VISIBLE); - ViewClicksAntiShake.clicksAntiShake(sud_text_name, new ViewClicksAntiShake.ViewClicksCallBack() { + sud_layout_name.setVisibility(View.VISIBLE); + ViewClicksAntiShake.clicksAntiShake(sud_layout_name, new ViewClicksAntiShake.ViewClicksCallBack() { @Override public void onViewClicks() { - sud_text_name.setVisibility(View.GONE); + sud_layout_name.setVisibility(View.GONE); } }); sudNameHandler.removeCallbacks(sudNameRunnable); diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index 2995e1eb0..b7080669b 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -2478,21 +2478,31 @@ android:layout_marginTop="80dp" app:autoPlay="true" /> - + android:layout_marginEnd="42dp" + android:paddingStart="21dp" + android:visibility="gone" + android:paddingEnd="15dp"> + + + +