update:根据需求修改购买守护界面UI

This commit is contained in:
zlzw 2022-08-31 18:55:01 +08:00
parent 9c0a1dd19f
commit fd057a0dca

View File

@ -132,7 +132,7 @@ public class LiveNewGuardBuyDialogFragment extends AbsDialogFragment implements
buy2 = mRootView.findViewById(R.id.buy2); buy2 = mRootView.findViewById(R.id.buy2);
guard_tips = mRootView.findViewById(R.id.guard_textView2); guard_tips = mRootView.findViewById(R.id.guard_textView2);
iconCover.setImageResource(R.drawable.guardian_img_wings); //iconCover.setImageResource(R.drawable.guardian_img_wings);
mBtnBuy.setOnClickListener(this); mBtnBuy.setOnClickListener(this);
submit.setOnClickListener(this); submit.setOnClickListener(this);
@ -201,7 +201,11 @@ public class LiveNewGuardBuyDialogFragment extends AbsDialogFragment implements
private void initView() { private void initView() {
int guardType = mLiveGuardInfo.getMyGuardType(); int guardType = mLiveGuardInfo.getMyGuardType();
if (guardType == Constants.GUARD_TYPE_NONE) { if (guardType == Constants.GUARD_TYPE_NONE) {
iconCover.setBackgroundResource(R.drawable.guardian_img_wings); // iconCover.setBackgroundResource(R.drawable.guardian_img_wings);
userIconOne.setVisibility(View.VISIBLE);
userIconTwo.setVisibility(View.VISIBLE);
ImgLoader.display(mContext, mAncherIcon, userIconOne);
ImgLoader.display(mContext, mUserIcon, userIconTwo);
buy1.setVisibility(View.VISIBLE); buy1.setVisibility(View.VISIBLE);
buy2.setVisibility(View.GONE); buy2.setVisibility(View.GONE);
} else { } else {