[8.1.2][fix]解决概率文案显示错误的问题
This commit is contained in:
@@ -211,8 +211,8 @@ class DecisionLayout @JvmOverloads constructor(
|
||||
val pre1 = Random(SystemClock.elapsedRealtime()).nextInt(last+1)
|
||||
val pre2 = last - pre1
|
||||
tvPre1.text = "${pre1}%"
|
||||
tvPre3.text = "${randomNum}%"
|
||||
tvPre2.text = "${pre2}%"
|
||||
tvPre2.text = "${randomNum}%"
|
||||
tvPre3.text = "${pre2}%"
|
||||
|
||||
when (type) {
|
||||
0 -> {
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvPre1"
|
||||
android:layout_width="62dp"
|
||||
android:layout_width="68dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
@@ -80,7 +80,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvPre3"
|
||||
android:layout_width="62dp"
|
||||
android:layout_width="68dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
|
||||
Reference in New Issue
Block a user