From 917d237b6d2efcd3ffd2fe05bb0e5adf88815b3f Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 10 Apr 2023 10:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E6=B3=A8=E6=B6=88=E6=81=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/res/values/strings.xml | 2 +- config.gradle | 4 ++-- .../yunbao/live/adapter/LiveChatAdapter.java | 7 ++++--- live/src/main/res/layout/item_live_chat.xml | 20 ++++++++++++------- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index 2021aad89..58c751518 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -781,7 +781,7 @@ 直接退出 用戶 - 阿萨飒飒飒飒飒飒萨达飒飒飒飒飒飒你都不主動我們怎麼會有故事,跟主播Say Hi吧~ + 你都不主動我們怎麼會有故事,跟主播Say Hi吧~ + 關注 進入活動 diff --git a/config.gradle b/config.gradle index ab55f4f22..b391dfd74 100644 --- a/config.gradle +++ b/config.gradle @@ -9,9 +9,9 @@ ext { ] manifestPlaceholders = [ //正式、 -// serverHost : "https://napi.yaoulive.com", + serverHost : "https://napi.yaoulive.com", //测试 - serverHost : "https://ceshi.yaoulive.com", +// serverHost : "https://ceshi.yaoulive.com", //腾讯地图 txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", diff --git a/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java b/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java index 1fb171cc9..4a4651220 100644 --- a/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java @@ -182,12 +182,12 @@ public class LiveChatAdapter extends RecyclerView.Adapter { class Vh extends RecyclerView.ViewHolder { LinearLayout mBg, view_follow, view_action_game, view_zg, xydComplete; - TextView mTextView, tv_chat_active_into, tv_chat_avtive_name, tv_zg_anchorname, textTxt2; + TextView mTextView, tv_chat_active_into, tv_chat_avtive_name, tv_zg_anchorname, textTxt2,automatic_chat; RoundedImageView avatar; View v_chat_active_close; RecyclerView rv_chat_active; ImageView img_zg_img, btnAttention, textLeave; - FrameLayout attentionLayout; + LinearLayout attentionLayout; ClipPathCircleImage clipImage2; public Vh(View itemView) { @@ -195,7 +195,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter { mBg = (LinearLayout) itemView.findViewById(R.id.bg); mTextView = (TextView) itemView.findViewById(R.id.text_txt); textTxt2 = (TextView) itemView.findViewById(R.id.text_txt2); - attentionLayout = (FrameLayout) itemView.findViewById(R.id.attention_layout); + attentionLayout = (LinearLayout) itemView.findViewById(R.id.attention_layout); clipImage2 = (ClipPathCircleImage) itemView.findViewById(R.id.clip_image2); itemView.setOnClickListener(mOnClickListener); @@ -211,6 +211,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter { view_zg = (LinearLayout) itemView.findViewById(R.id.view_zg); xydComplete = (LinearLayout) itemView.findViewById(R.id.xyd_complete); tv_zg_anchorname = (TextView) itemView.findViewById(R.id.tv_zg_anchorname); + automatic_chat = (TextView) itemView.findViewById(R.id.automatic_chat); img_zg_img = (ImageView) itemView.findViewById(R.id.img_zg_img); btnAttention = (ImageView) itemView.findViewById(R.id.btn_attention); textLeave = (ImageView) itemView.findViewById(R.id.text_leave); diff --git a/live/src/main/res/layout/item_live_chat.xml b/live/src/main/res/layout/item_live_chat.xml index 2a257ffd4..fd3af5505 100644 --- a/live/src/main/res/layout/item_live_chat.xml +++ b/live/src/main/res/layout/item_live_chat.xml @@ -181,11 +181,13 @@ android:layout_height="45dp" /> - @@ -209,11 +215,11 @@ android:id="@+id/btn_attention" android:layout_width="54dp" android:layout_height="26dp" - android:layout_gravity="end" - android:layout_margin="11dp" + android:layout_marginStart="10dp" + android:layout_marginEnd="11dp" android:src="@mipmap/btn_attention" /> - +