1
0

update activity_main

This commit is contained in:
chinosk 2024-05-22 23:57:56 +08:00
parent 02f89eea83
commit f6ea007c5e
No known key found for this signature in database
GPG Key ID: 00610B08C1BF7BE9

View File

@ -13,6 +13,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:padding="6sp"
tools:context=".MainActivity"> tools:context=".MainActivity">
<LinearLayout <LinearLayout
@ -39,7 +40,8 @@
<TableLayout <TableLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical"
android:stretchColumns="0">
<TableRow <TableRow
android:layout_width="match_parent" android:layout_width="match_parent"
@ -47,7 +49,7 @@
<com.google.android.material.switchmaterial.SwitchMaterial <com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/SwitchEnablePlugin" android:id="@+id/SwitchEnablePlugin"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:checked="@={config.enabled}" android:checked="@={config.enabled}"
android:onCheckedChanged="@{(view, value) -> listener.onEnabledChanged(value)}" android:onCheckedChanged="@{(view, value) -> listener.onEnabledChanged(value)}"
@ -60,7 +62,7 @@
<com.google.android.material.switchmaterial.SwitchMaterial <com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/SwitchEnableFreeCameraPlugin" android:id="@+id/SwitchEnableFreeCameraPlugin"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:checked="@={config.enableFreeCamera}" android:checked="@={config.enableFreeCamera}"
android:onCheckedChanged="@{(view, value) -> listener.onEnableFreeCameraChanged(value)}" android:onCheckedChanged="@{(view, value) -> listener.onEnableFreeCameraChanged(value)}"
@ -72,7 +74,7 @@
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/StartGameButton" android:id="@+id/StartGameButton"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:onClick="@{() -> listener.onClickStartGame()}" android:onClick="@{() -> listener.onClickStartGame()}"
android:text="@string/start_game" /> android:text="@string/start_game" />