From 27776d1761b597e91deb740be4bf2e9b5aa8c6b3 Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Tue, 24 Sep 2024 11:22:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=87=E6=8D=A2=E8=A7=82?= =?UTF-8?q?=E4=BC=97=E7=B1=BB=E5=9E=8B=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dialog/LiveUserMoreDialogFragment.java | 32 ++- .../yunbao/live/views/LiveRoomViewHolder.java | 1 - live/src/main/res/layout/view_live_room.xml | 6 +- .../main/res/layout/view_live_room_pk_ad.xml | 263 ++++++++++++++++++ 4 files changed, 284 insertions(+), 18 deletions(-) create mode 100644 live/src/main/res/layout/view_live_room_pk_ad.xml diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java index 730eeb7c2..14cad59c4 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java @@ -382,21 +382,23 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie noMoreText.setVisibility(View.GONE); LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) mRefreshView.getLayoutParams(); params.bottomMargin = DpUtil.dp2px(65); - if(noble){ - tags.setText(R.string.enjoy_a_lot); - btn.setBackgroundResource(R.mipmap.btn_openvip); - btn.setText(R.string.live_ktgz); - setTextColor(gz_view,audience_btn, guard_btn, fans_btn, weekRank, dayRank); - userMoreInfoAdapter.type = "1"; - type = "guanzhong"; - }else if (Tips.equals("1")) { - tags.setText(R.string.enjoy_a_lot); - btn.setBackgroundResource(R.mipmap.btn_openvip); - btn.setText(R.string.live_ktgz); - setTextColor(audience_btn, guard_btn, fans_btn, weekRank, dayRank,gz_view); - userMoreInfoAdapter.type = "1"; - type = "guanzhong"; - } else if (Tips.equals("2")) { + if(Tips.equals("1")){ + if (noble){ + tags.setText(R.string.enjoy_a_lot); + btn.setBackgroundResource(R.mipmap.btn_openvip); + btn.setText(R.string.live_ktgz); + setTextColor(gz_view,audience_btn, guard_btn, fans_btn, weekRank, dayRank); + userMoreInfoAdapter.type = "1"; + type = "guanzhong"; + }else { + tags.setText(R.string.enjoy_a_lot); + btn.setBackgroundResource(R.mipmap.btn_openvip); + btn.setText(R.string.live_ktgz); + setTextColor(audience_btn, guard_btn, fans_btn, weekRank, dayRank,gz_view); + userMoreInfoAdapter.type = "1"; + type = "guanzhong"; + } + }else if (Tips.equals("2")) { tags.setText(R.string.guard_for_your); btn.setBackgroundResource(R.mipmap.btn_openprotection); btn.setText(R.string.daemon_list); 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 0284c1036..9bbd2da2f 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -3969,7 +3969,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis params.height = mScreenWdith * 720 / PK_LINE_HEIGHT; //params.bottomMargin = (mScreenWdith * 720 / 960); lt_pk_line.requestLayout(); - lt_pk_line.setVisibility(View.VISIBLE); } Boolean idB = true; diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index 88fb3f7bf..74ab1bfd9 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -1800,7 +1800,7 @@ android:id="@+id/lt_pk_line" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="156dp" + android:layout_marginTop="180dp" android:visibility="gone" tools:visibility="visible"> @@ -1819,7 +1819,8 @@ android:textColor="#FFFFFF" android:textSize="12sp" android:textStyle="bold" - android:visibility="gone" /> + android:visibility="gone" + tools:visibility="visible"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file