From 2371ef1deea674667103ffb7b12341c32dd9e3a0 Mon Sep 17 00:00:00 2001
From: zlzw <583819556@qq.com>
Date: Fri, 18 Nov 2022 14:42:12 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=AA=E4=BA=BA=E5=90=8D?=
=?UTF-8?q?=E7=89=87=E5=8D=A1=E4=B8=BB=E6=92=AD=E6=98=BE=E7=A4=BA=E4=B8=BB?=
=?UTF-8?q?=E6=92=AD=E7=AD=89=E7=BA=A7=E5=BA=95=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../live/dialog/LiveUserDialogFragment.java | 25 +++++++++------
.../main/res/layout/dialog_new_live_user.xml | 32 +++++++++++++++++--
2 files changed, 45 insertions(+), 12 deletions(-)
diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java
index b30c1567b..039c8eb6a 100644
--- a/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java
+++ b/live/src/main/java/com/yunbao/live/dialog/LiveUserDialogFragment.java
@@ -114,6 +114,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
private TextView mUnion;
private TextView mHonorVal;
private TextView mNobleTitleVal;
+ private TextView mLvVal;
private ImageView mFollowImage;
private ImageView mSex;
private ImageView good_nub_ico;
@@ -246,6 +247,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
mHonorLayout = mRootView.findViewById(R.id.honor_layout);
mTitleBg = mRootView.findViewById(R.id.title_bg);
mSetting = mRootView.findViewById(R.id.btn_setting);
+ mLvVal = mRootView.findViewById(R.id.user_card_lv_val);
mNobleIconLayout.setOnClickListener(this);
mSetting.setOnClickListener(this);
mHonorLayout.setOnClickListener(v -> forwardHomePage());
@@ -363,17 +365,22 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
userLv.setText("Lv." + mUserBean.getLevel());
mLvDesc.setText(R.string.live_user_card_level);
}
- new LiveTextRender().getLevelImage(mContext, levelBean.getLevel(), new ImgLoader.DrawableCallback() {
- @Override
- public void onLoadSuccess(Drawable drawable) {
- ImgLoader.display2(mContext, drawable, mLiveIcon);
- }
+ if(isAnchor){
+ ImgLoader.display2(mContext,obj.getJSONObject("level_thumb").getString("thumb"),mLiveIcon);
+ mLvVal.setText(obj.getInteger("level_anchor")+"");
+ }else {
+ new LiveTextRender().getLevelImage(mContext, levelBean.getLevel(), new ImgLoader.DrawableCallback() {
+ @Override
+ public void onLoadSuccess(Drawable drawable) {
+ ImgLoader.display2(mContext, drawable, mLiveIcon);
+ }
- @Override
- public void onLoadFailed() {
+ @Override
+ public void onLoadFailed() {
- }
- });
+ }
+ });
+ }
ImgLoader.display(mContext, levelBean.getBgIcon(), mLiveIcon2);
FansMedalBean fansMedalBean = CommonAppConfig.getInstance().getAnchorFansMedal(obj.getIntValue("medal_level"));
if (fansMedalBean != null && !isAnchor) {
diff --git a/live/src/main/res/layout/dialog_new_live_user.xml b/live/src/main/res/layout/dialog_new_live_user.xml
index 73c61ecf0..e2c769cc2 100644
--- a/live/src/main/res/layout/dialog_new_live_user.xml
+++ b/live/src/main/res/layout/dialog_new_live_user.xml
@@ -232,12 +232,38 @@
android:layout_height="17dp"
android:layout_marginLeft="4dp" />
-
+ android:layout_marginStart="6dp">
+
+
+
+
+
+