1、開通守護-使用優惠券
2、开通贵族,在当前直播间有围观按钮问题
This commit is contained in:
parent
3dcc801331
commit
769f527565
@ -57,7 +57,6 @@ public class GuardBuyCouponTipsDialog {
|
||||
dialog.findViewById(R.id.btn_cancel).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
simpleCallback.onCancel();
|
||||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
|
@ -27,6 +27,7 @@ import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.utils.BitmapUtil;
|
||||
import com.yunbao.common.utils.L;
|
||||
import com.yunbao.common.utils.SVGAViewUtils;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@ -56,6 +57,8 @@ public class NobleNoticeView extends FrameLayout {
|
||||
private HorizontalScrollView contextLayout;
|
||||
private RelativeLayout scrollLayout;
|
||||
private ImageView nobleIcon;
|
||||
private String anchorUid;
|
||||
private String mLiveId;
|
||||
|
||||
public NobleNoticeView(@NonNull Context context) {
|
||||
super(context);
|
||||
@ -97,9 +100,11 @@ public class NobleNoticeView extends FrameLayout {
|
||||
});
|
||||
}
|
||||
|
||||
public NobleNoticeView setRootView(String uHead, String userNameStr, String anchorNicknameStr, String anchorUid) {
|
||||
public NobleNoticeView setRootView(String uHead, String userNameStr, String anchorNicknameStr, String anchorUid,String mLiveId) {
|
||||
this.uhead = uHead;
|
||||
this.anchorNicknameStr = anchorNicknameStr.trim();
|
||||
this.anchorUid = anchorUid;
|
||||
this.mLiveId = mLiveId;
|
||||
userName.setText(userNameStr);
|
||||
anchorNickname.setText(anchorNicknameStr.trim());
|
||||
if (TextUtils.isEmpty(anchorNicknameStr.trim())) {
|
||||
@ -112,6 +117,10 @@ public class NobleNoticeView extends FrameLayout {
|
||||
findViewById(R.id.anchor_nickname).setVisibility(VISIBLE);
|
||||
openNoble.setText(mContext.getString(R.string.open_noble));
|
||||
}
|
||||
if(anchorUid.equals(mLiveId)){
|
||||
L.eSw("showBuyVipMessage:"+anchorUid+"__"+mLiveId);
|
||||
gotoRoomView.setVisibility(GONE);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -352,13 +361,15 @@ public class NobleNoticeView extends FrameLayout {
|
||||
gotoRoomView.setLayoutParams(layoutParams);
|
||||
contextLayout.setLayoutParams(contextLayoutParams);
|
||||
if (!TextUtils.isEmpty(anchorNicknameStr)) {
|
||||
gotoRoomView.setVisibility(VISIBLE);
|
||||
if(mLiveId.equals(anchorUid)){
|
||||
gotoRoomView.setVisibility(GONE);
|
||||
}else{
|
||||
gotoRoomView.setVisibility(VISIBLE);
|
||||
}
|
||||
findViewById(R.id.in).setVisibility(VISIBLE);
|
||||
findViewById(R.id.anchor_nickname).setVisibility(VISIBLE);
|
||||
}
|
||||
contextLayout.setVisibility(VISIBLE);
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
@ -2,13 +2,13 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="310dp"
|
||||
android:layout_height="220dp"
|
||||
android:layout_height="250dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp"
|
||||
android:layout_height="230dp"
|
||||
android:background="@drawable/guard_buy_tips_bg">
|
||||
|
||||
<ImageView
|
||||
@ -40,7 +40,7 @@
|
||||
android:layout_below="@+id/title"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:gravity="center"
|
||||
android:letterSpacing="0.1"
|
||||
|
@ -1502,5 +1502,5 @@
|
||||
<string name="prank_complete">完成*1</string>
|
||||
<string name="pking_over">主播正在PK,稍後再試</string>
|
||||
<string name="live_guard_buy_coupon_tips_use">使用</string>
|
||||
<string name="live_guard_buy_coupon_tips_cancel">取消</string>
|
||||
<string name="live_guard_buy_coupon_tips_cancel">不使用</string>
|
||||
</resources>
|
||||
|
@ -1501,5 +1501,5 @@
|
||||
<string name="prank_complete">完成*1</string>
|
||||
<string name="pking_over">主播正在PK,稍後再試</string>
|
||||
<string name="live_guard_buy_coupon_tips_use">使用</string>
|
||||
<string name="live_guard_buy_coupon_tips_cancel">取消</string>
|
||||
<string name="live_guard_buy_coupon_tips_cancel">不使用</string>
|
||||
</resources>
|
||||
|
@ -1498,6 +1498,6 @@
|
||||
<string name="prank_complete">完成*1</string>
|
||||
<string name="pking_over">主播正在PK,稍後再試</string>
|
||||
<string name="live_guard_buy_coupon_tips_use">使用</string>
|
||||
<string name="live_guard_buy_coupon_tips_cancel">取消</string>
|
||||
<string name="live_guard_buy_coupon_tips_cancel">不使用</string>
|
||||
|
||||
</resources>
|
||||
|
@ -1507,5 +1507,5 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="pking_over">The anchor is in PK, please try again later</string>
|
||||
<string name="prank_complete">once</string>
|
||||
<string name="live_guard_buy_coupon_tips_use">Use</string>
|
||||
<string name="live_guard_buy_coupon_tips_cancel">Cancel</string>
|
||||
<string name="live_guard_buy_coupon_tips_cancel">Not use</string>
|
||||
</resources>
|
||||
|
@ -4394,29 +4394,30 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
* @param bean
|
||||
*/
|
||||
public void showBuyVipMessage(LiveReceiveGiftBean bean) {
|
||||
L.eSw("showBuyVipMessage:"+bean.getRoomnum()+"__"+mLiveUid);
|
||||
noble.setVisibility(View.VISIBLE);
|
||||
switch (bean.getNobilityid()) {
|
||||
|
||||
case "1":
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum()).setRoleType(NobleNoticeView.RoleType.BARON).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum(),mLiveUid).setRoleType(NobleNoticeView.RoleType.BARON).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
break;
|
||||
case "2":
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum()).setRoleType(NobleNoticeView.RoleType.VISCOUNT).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum(),mLiveUid).setRoleType(NobleNoticeView.RoleType.VISCOUNT).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
break;
|
||||
case "3":
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum()).setRoleType(NobleNoticeView.RoleType.MARQUIS).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum(),mLiveUid).setRoleType(NobleNoticeView.RoleType.MARQUIS).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
break;
|
||||
case "4":
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum()).setRoleType(NobleNoticeView.RoleType.DUKE).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum(),mLiveUid).setRoleType(NobleNoticeView.RoleType.DUKE).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
break;
|
||||
case "5":
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum()).setRoleType(NobleNoticeView.RoleType.KING).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum(),mLiveUid).setRoleType(NobleNoticeView.RoleType.KING).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
break;
|
||||
case "6":
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum()).setRoleType(NobleNoticeView.RoleType.EMPEROR).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum(),mLiveUid).setRoleType(NobleNoticeView.RoleType.EMPEROR).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
break;
|
||||
case "7":
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum()).setRoleType(NobleNoticeView.RoleType.BETTER_EMPEROR).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
noble.setRootView(bean.getUhead(), bean.getUname(), bean.getAncherName(), bean.getRoomnum(),mLiveUid).setRoleType(NobleNoticeView.RoleType.BETTER_EMPEROR).setCallBack(() -> gotoLive(bean.getRoomnum()));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user