fix:修复日榜周榜的提示文显示在其他tab的问题

This commit is contained in:
zlzw 2022-08-30 16:57:11 +08:00
parent 4db4fe1301
commit 014ee98586
2 changed files with 5 additions and 1 deletions

View File

@ -348,6 +348,7 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
bottom_msg.setVisibility(View.VISIBLE); bottom_msg.setVisibility(View.VISIBLE);
mRefreshView.setVisibility(View.VISIBLE); mRefreshView.setVisibility(View.VISIBLE);
title.setVisibility(View.GONE); title.setVisibility(View.GONE);
noMoreText.setVisibility(View.GONE);
LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) mRefreshView.getLayoutParams(); LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) mRefreshView.getLayoutParams();
params.bottomMargin=DpUtil.dp2px(65); params.bottomMargin=DpUtil.dp2px(65);
if (Tips.equals("1")) { if (Tips.equals("1")) {
@ -385,6 +386,7 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
gz_view.setVisibility(View.GONE); gz_view.setVisibility(View.GONE);
no_more.setImageResource(R.drawable.img_rank_empty); no_more.setImageResource(R.drawable.img_rank_empty);
noMoreText.setText(R.string.no_more_day_rank); noMoreText.setText(R.string.no_more_day_rank);
noMoreText.setVisibility(View.VISIBLE);
}else if (Tips.equals("5")){ }else if (Tips.equals("5")){
params.bottomMargin=DpUtil.dp2px(0); params.bottomMargin=DpUtil.dp2px(0);
userMoreInfoAdapter.type = "5"; userMoreInfoAdapter.type = "5";
@ -394,6 +396,7 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
no_more.setImageResource(R.drawable.img_rank_empty); no_more.setImageResource(R.drawable.img_rank_empty);
noMoreText.setText(R.string.no_more_day_rank); noMoreText.setText(R.string.no_more_day_rank);
setTextColor(weekRank,audience_btn,guard_btn,fans_btn,gz_view,dayRank); setTextColor(weekRank,audience_btn,guard_btn,fans_btn,gz_view,dayRank);
noMoreText.setVisibility(View.VISIBLE);
} }
mRefreshView.setLayoutParams(params); mRefreshView.setLayoutParams(params);
} }

View File

@ -125,8 +125,9 @@
android:id="@+id/no_more_text" android:id="@+id/no_more_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="#FFFFFF" android:textColor="#B3FFFFFF"
android:textSize="14sp" android:textSize="14sp"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/no_more" /> app:layout_constraintTop_toBottomOf="@+id/no_more" />