寻爱飘屏 UI优化

This commit is contained in:
wzq
2023-09-25 19:54:42 +08:00
parent 01958edd06
commit 30d793d794
6 changed files with 26 additions and 15 deletions

View File

@@ -144,7 +144,7 @@ android {
ext.enableCrashlytics = false
ext.alwaysUpdateBuildId = false // Firebase Crashlytics禁用更新构建ID
buildConfigField "String", "BASE_URL", "\"https://beta.api.pekolive.com/\""
buildConfigField "String", "BASE_URL", "\"http://beta.api.pekolive.com/\""
buildConfigField "String", "BASE_URL_DEBUG", "BASE_URL"
buildConfigField "String", "BASE_URL_STAGING", "BASE_URL"
buildConfigField "String", "BASE_URL_RELEASE", "BASE_URL"

View File

@@ -44,6 +44,7 @@ import com.yizhuan.xchat_android_core.im.custom.bean.*
import com.yizhuan.xchat_android_core.manager.AvRoomDataManager
import com.yizhuan.xchat_android_core.manager.IMNetEaseManager
import com.yizhuan.xchat_android_core.manager.RoomEvent
import com.yizhuan.xchat_android_core.monsterhunting.SimpleAnimationListener
import com.yizhuan.xchat_android_core.room.bean.DatingNotifyInfo
import com.yizhuan.xchat_android_core.super_admin.util.SuperAdminUtil
import com.yizhuan.xchat_android_core.user.UserModel
@@ -334,7 +335,7 @@ class RoomEffectBoxView @JvmOverloads constructor(
ForegroundColorSpan(Color.WHITE)
)
.append(
attachment.nick + " ",
attachment.nick.subAndReplaceDot(8),
ForegroundColorSpan(resources.getColor(R.color.notice_nick))
)
.append(
@@ -344,7 +345,7 @@ class RoomEffectBoxView @JvmOverloads constructor(
)
.append(
attachment.prizeName,
ForegroundColorSpan(resources.getColor(R.color.color_00EAFF))
ForegroundColorSpan(resources.getColor(R.color.notice_nick))
)
if (attachment.prizeNum > 1) {
text.append("x" + attachment.prizeNum, ForegroundColorSpan(Color.WHITE))
@@ -407,22 +408,31 @@ class RoomEffectBoxView @JvmOverloads constructor(
)
.append(
attachment.prizeName,
ForegroundColorSpan(resources.getColor(R.color.color_00EAFF))
ForegroundColorSpan(resources.getColor(R.color.notice_nick))
)
if (attachment.prizeNum > 1) {
text.append("x" + attachment.prizeNum, ForegroundColorSpan(Color.WHITE))
}
val svgaImageView = SVGAImageView(mContext)
svgaImageView.loops = 1
svgaImageView.clearsAfterStop = true
svgaImageView.clearsAfterDetached = true
val params = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
svgaImageView.layoutParams = params
svgaImageView.callback = object : SimpleSvgaCallback() {
override fun onFinished() {
binding.flSvgaBoxNotify.post { binding.flSvgaBoxNotify.removeView(svgaImageView) }
animationBox = AnimationUtils.loadAnimation(mContext, R.anim.anim_box_notify_close)
animationBox!!.setAnimationListener(object : SimpleAnimationListener() {
override fun onAnimationEnd(animation: Animation?) {
binding.flSvgaBoxNotify.removeView(svgaImageView)
}
})
binding.flSvgaBoxNotify.startAnimation(animationBox)
}
}
animationBox = AnimationUtils.loadAnimation(mContext, R.anim.anim_box_notify)
binding.flSvgaBoxNotify.addView(svgaImageView)
binding.flSvgaBoxNotify.startAnimation(animationBox)
shareParser().decodeFromAssets("svga/box_notify.svga", object : SVGAParser.ParseCompletion {
override fun onComplete(videoItem: SVGAVideoEntity) {
val dynamicEntity = SVGADynamicEntity()

View File

@@ -977,7 +977,7 @@ class RoomEffectView @JvmOverloads constructor(
ForegroundColorSpan(Color.WHITE)
)
.append(
attachment.nick + " ",
attachment.nick.subAndReplaceDot(8),
ForegroundColorSpan(resources.getColor(R.color.notice_nick))
)
.append(
@@ -987,7 +987,7 @@ class RoomEffectView @JvmOverloads constructor(
)
.append(
attachment.prizeName,
ForegroundColorSpan(resources.getColor(R.color.color_00EAFF))
ForegroundColorSpan(resources.getColor(R.color.notice_nick))
)
if (attachment.prizeNum > 1) {
text.append("x" + attachment.prizeNum, ForegroundColorSpan(Color.WHITE))
@@ -1084,7 +1084,7 @@ class RoomEffectView @JvmOverloads constructor(
)
.append(
attachment.prizeName,
ForegroundColorSpan(resources.getColor(R.color.color_00EAFF))
ForegroundColorSpan(resources.getColor(R.color.notice_nick))
)
if (attachment.prizeNum > 1) {
text.append("x" + attachment.prizeNum, ForegroundColorSpan(Color.WHITE))

View File

@@ -131,7 +131,7 @@ public class AllPlayEffectDialog extends BaseDialog {
)
.append(
roomBoxPrizeInfo.getPrizeName(),
new ForegroundColorSpan(ContextCompat.getColor(getContext(), R.color.color_00EAFF))
new ForegroundColorSpan(ContextCompat.getColor(getContext(), R.color.notice_nick))
);
if (roomBoxPrizeInfo.getPrizeNum() > 1) {
text.append("x" + roomBoxPrizeInfo.getPrizeNum(), new ForegroundColorSpan(Color.WHITE));

View File

@@ -8,11 +8,12 @@
android:ellipsize="end"
android:gravity="center"
android:includeFontPadding="false"
android:maxLines="2"
android:lineSpacingExtra="0dp"
android:lineSpacingMultiplier="0.9"
android:paddingStart="80dp"
android:paddingEnd="80dp"
android:maxLines="2"
android:paddingStart="@dimen/dp_60"
android:paddingEnd="@dimen/dp_60"
android:textColor="@color/white"
android:textSize="12sp"
tools:layout_height="wrap_content"
tools:text="@string/layout_layout_room_box_notify_01" />

View File

@@ -1791,10 +1791,10 @@
<string name="avroom_widget_roomeffectview_07">鉆的</string>
<string name="avroom_widget_roomeffectview_08">厲害了! </string>
<string name="avroom_widget_roomeffectview_09">獲取</string>
<string name="avroom_widget_roomeffectview_010">獲得 </string>
<string name="avroom_widget_roomeffectview_010">獲得\n</string>
<string name="avroom_widget_roomeffectview_011">厲害了! </string>
<string name="avroom_widget_roomeffectview_012">獲取</string>
<string name="avroom_widget_roomeffectview_013">獲得 </string>
<string name="avroom_widget_roomeffectview_013">獲得\n</string>
<string name="avroom_widget_roomeffectview_014">厲害了! </string>
<string name="avroom_widget_roomeffectview_015"> 獲得</string>
<string name="avroom_widget_roomeffectview_016">厲害了! </string>