贵族开通的动画横幅

This commit is contained in:
18401019693
2022-09-19 15:35:37 +08:00
parent 8b4d25bbeb
commit 0de802bf3c
7 changed files with 124 additions and 11 deletions

View File

@@ -51,8 +51,8 @@ public class NobleNoticeView extends FrameLayout {
private SVGAImageView svagaBc;
private RelativeLayout rootLayout;
private long animationTime = 8000;
private TextView gotoRoomView, nobleNickname;
private String mSvgaName;
private TextView gotoRoomView, nobleNickname, userName, anchorNickname;
private String mSvgaName, uhead,anchorUid;
private RoleType roleType;
private HorizontalScrollView contextLayout;
private RelativeLayout scrollLayout;
@@ -83,10 +83,20 @@ public class NobleNoticeView extends FrameLayout {
scrollLayout = rootView.findViewById(R.id.scroll_layout);
nobleIcon = rootView.findViewById(R.id.noble_icon);
nobleNickname = rootView.findViewById(R.id.noble_nickname);
userName = rootView.findViewById(R.id.user_name);
anchorNickname = rootView.findViewById(R.id.anchor_nickname);
contextLayout.setVisibility(GONE);
gotoRoomView.setVisibility(GONE);
}
public NobleNoticeView setRootView(String uHead, String userNameStr, String anchorNicknameStr, String anchorUid) {
this.uhead = uHead;
this.anchorUid = anchorUid;
userName.setText(userNameStr);
anchorNickname.setText(anchorNicknameStr);
return this;
}
/**
* 设置展示的类型
*
@@ -145,7 +155,7 @@ public class NobleNoticeView extends FrameLayout {
public void subscribe(ObservableEmitter<Bitmap> emitter) throws Exception {
Bitmap bitmap = BitmapUtil.getInstance()
.getBitmap(mContext,
"https://downs.yaoulive.com/20220818/372776fa38774814d601e68fcfc70f35.jpeg?imageView2/2/w/600/h/600",
uhead,
174,
174,
87);