钻石测试
This commit is contained in:
parent
edff0c408e
commit
ee79f241e1
|
|
@ -60,6 +60,15 @@ class VersionActivity : AppViewsActivity<ViewBinding, UiState, ViewModel>(), OnT
|
|||
}
|
||||
}
|
||||
|
||||
butDiamond.setOnClickListener {
|
||||
try {
|
||||
val diamondNum = evDiamond.text.toString().toInt()
|
||||
AccountManager.adjustDiamond(diamondNum)
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@
|
|||
<EditText
|
||||
android:id="@+id/ev_gold"
|
||||
android:layout_width="160dp"
|
||||
android:inputType="number"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<Button
|
||||
|
|
@ -103,6 +104,32 @@
|
|||
android:text="确定" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- diamond -->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="16dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="diamond:" />
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ev_diamond"
|
||||
android:layout_width="160dp"
|
||||
android:inputType="number"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/but_diamond"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="确定" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- ad -->
|
||||
<LinearLayout
|
||||
|
|
|
|||
Loading…
Reference in New Issue