夺宝精灵:幸运石头进度显示逻辑优化
This commit is contained in:
@@ -10,6 +10,7 @@ import android.view.*
|
||||
import android.widget.LinearLayout
|
||||
import android.widget.TextView
|
||||
import androidx.activity.viewModels
|
||||
import androidx.core.content.ContextCompat
|
||||
import com.mango.core.UriProvider
|
||||
import com.mango.core.treasurefairy.PrizeInfo
|
||||
import com.mango.moshen.R
|
||||
@@ -135,7 +136,12 @@ class HomeDialog : BaseViewBindingActivity<TreasureFairyDialogHomeBinding>() {
|
||||
binding.tvCurrentLuckyValue.text = it.luckyNum.toString()
|
||||
binding.tvShortLuckyValue.text = "达到${it.needLuckyNum}后下次夺宝,额外获赠精灵球"
|
||||
binding.ivLuckyStone.post {
|
||||
val drawable = CustomDrawable(binding.ivLuckyStone.drawable)
|
||||
val drawable = CustomDrawable(
|
||||
ContextCompat.getDrawable(
|
||||
this,
|
||||
R.drawable.treasure_fairy_ic_lucky_stone
|
||||
)
|
||||
)
|
||||
val path = Path()
|
||||
path.addRect(
|
||||
0f,
|
||||
|
@@ -31,10 +31,10 @@
|
||||
android:id="@+id/tv_key_num"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:background="@drawable/treasure_fairy_bg_key_number"
|
||||
android:gravity="center"
|
||||
android:paddingStart="8dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:paddingTop="2dp"
|
||||
android:text="12.2W"
|
||||
android:textColor="@color/white"
|
||||
@@ -215,19 +215,18 @@
|
||||
android:id="@+id/tv_current_lucky_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="2365"
|
||||
android:textColor="#ffffe8aa"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintBaseline_toBaselineOf="@id/tv_current_lucky_value_text"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/tv_current_lucky_value_text" />
|
||||
app:layout_constraintStart_toEndOf="@id/tv_current_lucky_value_text"
|
||||
tools:text="2365" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_lucky_stone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/treasure_fairy_ic_lucky_stone_default"
|
||||
android:src="@drawable/treasure_fairy_ic_lucky_stone"
|
||||
app:layout_constraintBottom_toTopOf="@id/tv_short_lucky_value"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
Reference in New Issue
Block a user