[BugFix]调整夺宝精灵ui

This commit is contained in:
wushaocheng
2023-03-13 11:46:54 +08:00
parent c27225db12
commit 0ac3446273
4 changed files with 23 additions and 9 deletions

View File

@@ -45,9 +45,9 @@ class MyFairySendDialog : BaseDialog<TreasureFairyDialogMyFairySendBinding>() {
binding.tvContent.text =
SpannableBuilder()
.append(if (isSend) "確定贈送" else "確定向", ForegroundColorSpan(Color.WHITE))
.append("\"${userInfo.nick}\"", ForegroundColorSpan("#FEF8AA".toColorInt()))
.append("${userInfo.nick}", ForegroundColorSpan("#FEF8AA".toColorInt()))
.append(
"\"${if (isSend) "" else "索要"}1張“${fairyInfo.elfName}”精靈卡嗎?",
"${if (isSend) "" else "索要"}1張“${fairyInfo.elfName}”精靈卡嗎?",
ForegroundColorSpan(Color.WHITE)
)
.build()

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 B

View File

@@ -29,14 +29,11 @@
<TextView
android:id="@+id/tv_key_num"
android:layout_width="83dp"
android:layout_height="30dp"
android:layout_marginStart="15dp"
android:background="@drawable/treasure_fairy_bg_key_number"
android:layout_width="77dp"
android:layout_height="24dp"
android:layout_marginStart="30dp"
android:background="@drawable/treasure_fairy_bg_key"
android:gravity="center"
android:paddingStart="@dimen/dp_8"
android:paddingEnd="@dimen/dp_0"
android:paddingTop="2dp"
android:text="0"
android:textColor="@color/white"
android:textSize="@dimen/sp_10"
@@ -44,6 +41,23 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/iv_more" />
<androidx.appcompat.widget.AppCompatImageView
android:src="@drawable/treasure_fairy_bg_key_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/dp_8"
app:layout_constraintEnd_toEndOf="@+id/tv_key_num"
app:layout_constraintTop_toTopOf="@+id/tv_key_num"
app:layout_constraintBottom_toBottomOf="@+id/tv_key_num"/>
<androidx.appcompat.widget.AppCompatImageView
android:src="@drawable/treasure_fairy_bg_key_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="@+id/tv_key_num"
app:layout_constraintEnd_toStartOf="@+id/tv_key_num"
app:layout_constraintBottom_toBottomOf="@+id/tv_key_num"/>
<ImageView
android:id="@+id/iv_fairy_treasure"
android:layout_width="50dp"