直播间开通贵族结束

This commit is contained in:
18401019693
2022-09-19 17:07:59 +08:00
parent f531fd4d0e
commit 1935ac14f0
6 changed files with 120 additions and 19 deletions

View File

@@ -52,7 +52,7 @@ public class NobleNoticeView extends FrameLayout {
private RelativeLayout rootLayout;
private long animationTime = 8000;
private TextView gotoRoomView, nobleNickname, userName, anchorNickname;
private String mSvgaName, uhead,anchorUid;
private String mSvgaName, uhead, anchorUid;
private RoleType roleType;
private HorizontalScrollView contextLayout;
private RelativeLayout scrollLayout;
@@ -87,6 +87,14 @@ public class NobleNoticeView extends FrameLayout {
anchorNickname = rootView.findViewById(R.id.anchor_nickname);
contextLayout.setVisibility(GONE);
gotoRoomView.setVisibility(GONE);
gotoRoomView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if (callBack != null) {
callBack.gotoLive();
}
}
});
}
public NobleNoticeView setRootView(String uHead, String userNameStr, String anchorNicknameStr, String anchorUid) {
@@ -409,4 +417,15 @@ public class NobleNoticeView extends FrameLayout {
return this;
}
}
private NobleNoticeCallBack callBack;
public NobleNoticeView setCallBack(NobleNoticeCallBack callBack) {
this.callBack = callBack;
return this;
}
public interface NobleNoticeCallBack {
void gotoLive();
}
}