From 76e9748eeba5e80c0f0cd42ec2230eb4809b1e32 Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Mon, 23 Sep 2024 15:23:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=92=AD=E5=88=9B=E5=BB=BA=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E7=9A=84=E5=8A=A0=E5=85=A5=E7=9A=84UI=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/live/views/LiveRoomViewHolder.java | 7 ++++--- live/src/main/res/layout/view_live_room.xml | 18 +++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) 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 5ea4092a9..6604c060d 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -930,7 +930,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } private TextView sud_text_name; - private RelativeLayout sud_layout_name; + private View sud_layout_name; private TextView sud_join; private ImageView iconSudClose; private Handler sudNameHandler = new Handler(); @@ -945,7 +945,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis public void setSudName(String sudName, SudGameDateModel sudGameDateModel) { sud_text_name = (TextView) findViewById(R.id.sud_text_name); - sud_layout_name = (RelativeLayout) findViewById(R.id.sud_layout_name); + sud_layout_name = findViewById(R.id.sud_layout_name); iconSudClose = (ImageView) findViewById(R.id.iconSudClose); //sud_layout_name.setVisibility(View.VISIBLE); ViewClicksAntiShake.clicksAntiShake(sud_layout_name, new ViewClicksAntiShake.ViewClicksCallBack() { @@ -993,7 +993,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis new Handler().postDelayed(new Runnable() { @Override public void run() { - sud_text_name.setText(WordUtil.isNewZh() ? String.format("主播创建了【%s】房间,快来与主播同玩~", sudName) : String.format("The anchor created a 【%s】 room", sudName)); + //,快来与主播同玩~ + sud_text_name.setText(WordUtil.isNewZh() ? String.format("主播创建了【%s】房间", sudName) : String.format("The anchor created a 【%s】 room", sudName)); sud_layout_name.setVisibility(View.VISIBLE); mLiveGiftAnimPresenter = new LiveGiftAnimPresenter(mContext, mContentView, mGifImageView, mSVGAImageView, mLiveGiftPrizePoolContainer, windowManager); mLiveGiftAnimPresenter.startGiftTipAnimatormSud(); diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index 796dcf039..967a20b1a 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -3122,36 +3122,35 @@ @@ -3159,10 +3158,10 @@ android:id="@+id/sud_join" android:layout_width="wrap_content" android:layout_height="18dp" - android:layout_alignParentEnd="true" + android:layout_toEndOf="@+id/sud_text_name" android:layout_centerVertical="true" android:layout_marginLeft="10dp" - android:layout_marginEnd="20dp" + android:layout_marginEnd="14dp" android:background="@drawable/bg_live_room_sud_hint_join" android:ellipsize="end" android:fontFamily="sans-serif-condensed-medium" @@ -3178,11 +3177,12 @@ tools:visibility="visible" />