拍照房小时榜飘屏UI修改(again)

This commit is contained in:
huangjian
2022-06-13 17:40:57 +08:00
parent 50b4564c83
commit d57f4cfa41
2 changed files with 6 additions and 5 deletions

View File

@@ -1023,7 +1023,7 @@ class RoomEffectView @JvmOverloads constructor(
val textView = rootView.findViewById<TextView>(R.id.tv_content)
val text = MessageView.SpannableBuilder(textView)
.append("恭喜", ForegroundColorSpan(Color.WHITE))
.append("${msgBean.title}」房间", Color.parseColor("#FFFC4C"))
.append("${msgBean.title}」房间", ForegroundColorSpan(Color.parseColor("#FFFC4C")))
.append(msgBean.desc, ForegroundColorSpan(Color.WHITE))
.append("TOP1", ForegroundColorSpan(Color.parseColor("#FFFC4C")))
textView.text = text.build()

View File

@@ -14,12 +14,13 @@
<TextView
android:id="@+id/tv_content"
android:layout_width="0dp"
android:maxLines="2"
android:textSize="12dp"
android:textStyle="bold"
android:layout_height="wrap_content"
android:layout_marginStart="65dp"
android:layout_weight="1" />
android:layout_weight="1"
android:gravity="center"
android:maxLines="2"
android:textSize="12dp"
android:textStyle="bold" />
<ImageView
android:id="@+id/iv_go_room"