新增【全服公告优化】

This commit is contained in:
zlzw 2024-05-27 13:48:52 +08:00
parent c33975fe67
commit bc63a3e601
6 changed files with 57 additions and 10 deletions

View File

@ -37,6 +37,8 @@ public class AllServerNotifyFFGGGDJANEvent extends BaseModel {
private List<ButtonStyleDTO> buttonStyle; private List<ButtonStyleDTO> buttonStyle;
@SerializedName("h5_type") @SerializedName("h5_type")
private String h5Type; private String h5Type;
@SerializedName("left_image")
private String leftImage;
public String getH5Type() { public String getH5Type() {
return h5Type; return h5Type;
@ -47,6 +49,14 @@ public class AllServerNotifyFFGGGDJANEvent extends BaseModel {
return this; return this;
} }
public String getLeftImage() {
return leftImage;
}
public void setLeftImage(String leftImage) {
this.leftImage = leftImage;
}
public String getMethod() { public String getMethod() {
return method; return method;
} }

View File

@ -9,9 +9,9 @@ ext {
] ]
manifestPlaceholders = [ manifestPlaceholders = [
// //
serverHost : "https://napi.yaoulive.com", // serverHost : "https://napi.yaoulive.com",
// //
// serverHost : "https://ceshi.yaoulive.com", serverHost : "https://ceshi.yaoulive.com",
// //

View File

@ -64,6 +64,7 @@ import com.yunbao.common.utils.HtmlTagHandler;
import com.yunbao.common.utils.L; import com.yunbao.common.utils.L;
import com.yunbao.common.utils.LiveRoomCheckLivePresenter; import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
import com.yunbao.common.utils.MicStatusManager; import com.yunbao.common.utils.MicStatusManager;
import com.yunbao.common.utils.StringUtil;
import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.utils.ToastUtil;
import com.yunbao.common.utils.WordUtil; import com.yunbao.common.utils.WordUtil;
import com.yunbao.common.views.weight.ViewClicksAntiShake; import com.yunbao.common.views.weight.ViewClicksAntiShake;
@ -276,6 +277,7 @@ public class LiveGiftAnimPresenter {
mFrameImageView = (FrameImageView) v.findViewById(R.id.all_frame_img); mFrameImageView = (FrameImageView) v.findViewById(R.id.all_frame_img);
full_service_notice_new = v.findViewById(R.id.full_service_notice_new); full_service_notice_new = v.findViewById(R.id.full_service_notice_new);
full_service_notice_new_bg = v.findViewById(R.id.full_service_notice_new_bg); full_service_notice_new_bg = v.findViewById(R.id.full_service_notice_new_bg);
full_service_notice_new_icon = v.findViewById(R.id.full_service_notice_new_icon);
full_service_notice_new_text = v.findViewById(R.id.full_service_notice_new_text); full_service_notice_new_text = v.findViewById(R.id.full_service_notice_new_text);
iv_look_full_service_notice_new = v.findViewById(R.id.iv_look_full_service_notice_new); iv_look_full_service_notice_new = v.findViewById(R.id.iv_look_full_service_notice_new);
iv_look_full_service_notice_new3 = v.findViewById(R.id.iv_look_full_service_notice_new3); iv_look_full_service_notice_new3 = v.findViewById(R.id.iv_look_full_service_notice_new3);
@ -1147,6 +1149,7 @@ public class LiveGiftAnimPresenter {
View full_service_notice_new; View full_service_notice_new;
ImageView full_service_notice_new_bg; ImageView full_service_notice_new_bg;
ImageView full_service_notice_new_icon;
TextView full_service_notice_new_text; TextView full_service_notice_new_text;
TextView iv_look_full_service_notice_new; TextView iv_look_full_service_notice_new;
AllServerNotifyFFGGGDJANEvent notifyFFGGGDJANEvent; AllServerNotifyFFGGGDJANEvent notifyFFGGGDJANEvent;
@ -1181,6 +1184,12 @@ public class LiveGiftAnimPresenter {
full_service_notice_new.setAlpha(1f); full_service_notice_new.setAlpha(1f);
full_service_notice_new.setVisibility(View.VISIBLE); full_service_notice_new.setVisibility(View.VISIBLE);
ImgLoader.display(mContext, event.getBackgroundImage(), full_service_notice_new_bg); ImgLoader.display(mContext, event.getBackgroundImage(), full_service_notice_new_bg);
if(!StringUtil.isEmpty(event.getLeftImage())){
full_service_notice_new_icon.setVisibility(View.VISIBLE);
ImgLoader.display(mContext,event.getLeftImage(),full_service_notice_new_icon);
}else{
full_service_notice_new_icon.setVisibility(View.GONE);
}
SpannableStringBuilder builder = new SpannableStringBuilder(); SpannableStringBuilder builder = new SpannableStringBuilder();
String msgN = WordUtil.isNewZh() ? event.getMsgCn() : event.getMsgEn(); String msgN = WordUtil.isNewZh() ? event.getMsgCn() : event.getMsgEn();
builder.append(msgN); builder.append(msgN);

View File

@ -1212,17 +1212,43 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="51dp" android:layout_height="51dp"
android:translationX="500dp" android:translationX="500dp"
android:visibility="invisible"
tools:translationX="0dp" tools:translationX="0dp"
tools:visibility="visible" tools:visibility="visible">
android:visibility="invisible">
<ImageView <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/full_service_notice_new_bg"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginStart="13dp" android:layout_marginStart="13dp"
android:layout_marginEnd="7dp" android:layout_marginEnd="7dp">
<ImageView
android:id="@+id/full_service_notice_new_bg"
android:layout_width="match_parent"
android:layout_height="40dp"
android:scaleType="fitXY" android:scaleType="fitXY"
android:src="@mipmap/background_full_service_notice_new" /> android:src="@mipmap/full_service_notice_new_tmp_bg"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/full_service_notice_new_icon"
android:layout_width="52dp"
android:layout_height="52dp"
android:layout_marginStart="6dp"
android:scaleType="fitCenter"
android:src="@mipmap/full_service_notice_new_tmp_icon"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -1249,7 +1275,7 @@
android:marqueeRepeatLimit="marquee_forever" android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true" android:scrollHorizontally="true"
android:singleLine="true" android:singleLine="true"
android:text="字文文字文字文字文字fdsfsdfdsfdsfsdfdsfsdf文字文字" android:text="测试"
android:textColor="#fff" android:textColor="#fff"
android:textSize="13sp" /> android:textSize="13sp" />
@ -1270,6 +1296,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:clickable="true" android:clickable="true"
tools:text="btn"
tools:textColor="@color/white"
android:gravity="center" android:gravity="center"
android:textSize="12sp" /> android:textSize="12sp" />
</FrameLayout> </FrameLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB