forked from chinosk/gkms-local
87 lines
3.7 KiB
XML
87 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<data>
|
|
<variable name="config" type="io.github.chinosk.gakumas.localify.models.GakumasConfig" />
|
|
<variable
|
|
name="listener"
|
|
type="io.github.chinosk.gakumas.localify.ConfigListener" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="6sp"
|
|
tools:context=".MainActivity">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/textViewTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/black"
|
|
android:textSize="20sp"
|
|
android:text="@string/gakumas_localify" />
|
|
|
|
<Space
|
|
android:layout_width="match_parent"
|
|
android:layout_height="25sp" />
|
|
|
|
<TableLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:stretchColumns="0">
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/SwitchEnablePlugin"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:checked="@={config.enabled}"
|
|
android:onCheckedChanged="@{(view, value) -> listener.onEnabledChanged(value)}"
|
|
android:text="@string/enable_plugin" />
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/SwitchEnableFreeCameraPlugin"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:checked="@={config.enableFreeCamera}"
|
|
android:onCheckedChanged="@{(view, value) -> listener.onEnableFreeCameraChanged(value)}"
|
|
android:text="@string/enable_free_camera" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/StartGameButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:onClick="@{() -> listener.onClickStartGame()}"
|
|
android:text="@string/start_game" />
|
|
</TableRow>
|
|
|
|
</TableLayout>
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout>
|