守护榜页面需美化

This commit is contained in:
Martin 2024-07-03 11:21:25 +08:00
parent 833b58d311
commit 40a2843696
4 changed files with 7 additions and 2 deletions

View File

@ -61,6 +61,7 @@
android:text="用户名" android:text="用户名"
android:layout_marginTop="40dp" android:layout_marginTop="40dp"
android:ellipsize="end" android:ellipsize="end"
android:visibility="gone"
android:maxLines="1" android:maxLines="1"
android:gravity="center" android:gravity="center"
android:textColor="#333333" android:textColor="#333333"

View File

@ -1088,6 +1088,7 @@ public class LiveGiftAnimPresenter {
textRender.render(mContext, mGifGiftTipAllServer, mTempGifGiftBean.getGiftIcon(), mTempGifGiftBean.getUserNiceName(), mAncherName, mTempGifGiftBean.getGiftName(), 1, mWindowManager, ""); textRender.render(mContext, mGifGiftTipAllServer, mTempGifGiftBean.getGiftIcon(), mTempGifGiftBean.getUserNiceName(), mAncherName, mTempGifGiftBean.getGiftName(), 1, mWindowManager, "");
mIvLook.setVisibility(View.VISIBLE); mIvLook.setVisibility(View.VISIBLE);
mIvLook.setTag(bean); mIvLook.setTag(bean);
mIvLook.setVisibility(mLiveUid.equals(bean.getUid())?View.GONE:View.VISIBLE);
mGifGiftTipShowAnimatorAllServer.start(); mGifGiftTipShowAnimatorAllServer.start();
} }
@ -1381,6 +1382,7 @@ public class LiveGiftAnimPresenter {
//购买守护 全服通知 //购买守护 全服通知
public void showBuyGuardGiftAnim(LiveReceiveGiftBean bean) { public void showBuyGuardGiftAnim(LiveReceiveGiftBean bean) {
mIvLookBuyGuard.setVisibility(mLiveUid.equals(bean.getUid())?View.GONE:View.VISIBLE);
if (bean.ismTypeBuyGuard()) { if (bean.ismTypeBuyGuard()) {
mTempGifGiftBean = bean; mTempGifGiftBean = bean;
if (mShowAllServer) { if (mShowAllServer) {
@ -1518,6 +1520,8 @@ public class LiveGiftAnimPresenter {
iv_look_buy_vip.setVisibility(View.GONE); iv_look_buy_vip.setVisibility(View.GONE);
} }
iv_look_buy_vip.setVisibility(mLiveUid.equals(bean.getUid())?View.GONE:View.VISIBLE);
mGifGiftTipBuyVip.setSelected(false); mGifGiftTipBuyVip.setSelected(false);
if (!"0".equals(bean.getmLiveUId())) { if (!"0".equals(bean.getmLiveUId())) {

View File

@ -15,7 +15,7 @@
<ImageView <ImageView
android:id="@+id/guard_number_img" android:id="@+id/guard_number_img"
android:layout_width="19dp" android:layout_width="38.5dp"
android:layout_height="19dp" android:layout_height="19dp"
android:layout_gravity="center" android:layout_gravity="center"
android:src="@mipmap/icon_one_guard" android:src="@mipmap/icon_one_guard"

View File

@ -147,5 +147,5 @@
<string name="prank_open_live_msg">Entertainment Tricky has been newly upgraded. Go and set up Tricky content to add more fun to the live broadcast room!</string> <string name="prank_open_live_msg">Entertainment Tricky has been newly upgraded. Go and set up Tricky content to add more fun to the live broadcast room!</string>
<string name="prank_im_immediately_go">Go now</string> <string name="prank_im_immediately_go">Go now</string>
<string name="live_room_sud_hint_join">Join</string> <string name="live_room_sud_hint_join">Join</string>
<string name="live_dialog_top_guardian_tasks">守護任務</string> <string name="live_dialog_top_guardian_tasks">Guard tasks</string>
</resources> </resources>