[BugFix]调整夺宝精灵ui
This commit is contained in:
@@ -45,9 +45,9 @@ class MyFairySendDialog : BaseDialog<TreasureFairyDialogMyFairySendBinding>() {
|
|||||||
binding.tvContent.text =
|
binding.tvContent.text =
|
||||||
SpannableBuilder()
|
SpannableBuilder()
|
||||||
.append(if (isSend) "確定贈送" else "確定向", ForegroundColorSpan(Color.WHITE))
|
.append(if (isSend) "確定贈送" else "確定向", ForegroundColorSpan(Color.WHITE))
|
||||||
.append("\"${userInfo.nick}\"", ForegroundColorSpan("#FEF8AA".toColorInt()))
|
.append("“${userInfo.nick}”", ForegroundColorSpan("#FEF8AA".toColorInt()))
|
||||||
.append(
|
.append(
|
||||||
"\"${if (isSend) "" else "索要"}1張“${fairyInfo.elfName}”精靈卡嗎?",
|
"${if (isSend) "" else "索要"}1張“${fairyInfo.elfName}”精靈卡嗎?",
|
||||||
ForegroundColorSpan(Color.WHITE)
|
ForegroundColorSpan(Color.WHITE)
|
||||||
)
|
)
|
||||||
.build()
|
.build()
|
||||||
|
BIN
app/src/main/res/drawable-xhdpi/treasure_fairy_bg_key.webp
Normal file
BIN
app/src/main/res/drawable-xhdpi/treasure_fairy_bg_key.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
BIN
app/src/main/res/drawable-xhdpi/treasure_fairy_bg_key_add.webp
Normal file
BIN
app/src/main/res/drawable-xhdpi/treasure_fairy_bg_key_add.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 690 B |
@@ -29,14 +29,11 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_key_num"
|
android:id="@+id/tv_key_num"
|
||||||
android:layout_width="83dp"
|
android:layout_width="77dp"
|
||||||
android:layout_height="30dp"
|
android:layout_height="24dp"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_marginStart="30dp"
|
||||||
android:background="@drawable/treasure_fairy_bg_key_number"
|
android:background="@drawable/treasure_fairy_bg_key"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingStart="@dimen/dp_8"
|
|
||||||
android:paddingEnd="@dimen/dp_0"
|
|
||||||
android:paddingTop="2dp"
|
|
||||||
android:text="0"
|
android:text="0"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="@dimen/sp_10"
|
android:textSize="@dimen/sp_10"
|
||||||
@@ -44,6 +41,23 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="@id/iv_more" />
|
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
|
<ImageView
|
||||||
android:id="@+id/iv_fairy_treasure"
|
android:id="@+id/iv_fairy_treasure"
|
||||||
android:layout_width="50dp"
|
android:layout_width="50dp"
|
||||||
|
Reference in New Issue
Block a user