直播间开通贵族结束
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user