87 lines
3.4 KiB
XML
87 lines
3.4 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:padding="16dp">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Server Configuration"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:layout_marginBottom="16dp" />
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginBottom="8dp"
|
||
|
|
android:hint="Server Address">
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputEditText
|
||
|
|
android:id="@+id/serverAddressInput"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:inputType="text" />
|
||
|
|
</com.google.android.material.textfield.TextInputLayout>
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginBottom="8dp"
|
||
|
|
android:hint="Server Port">
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputEditText
|
||
|
|
android:id="@+id/serverPortInput"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:inputType="number" />
|
||
|
|
</com.google.android.material.textfield.TextInputLayout>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Authentication"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:layout_marginTop="16dp"
|
||
|
|
android:layout_marginBottom="16dp" />
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginBottom="8dp"
|
||
|
|
android:hint="Client Key"
|
||
|
|
app:endIconMode="password_toggle">
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputEditText
|
||
|
|
android:id="@+id/clientKeyInput"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:inputType="textPassword" />
|
||
|
|
</com.google.android.material.textfield.TextInputLayout>
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/saveSettingsButton"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Save Settings"
|
||
|
|
android:layout_marginTop="16dp" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/resetSettingsButton"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Reset to Defaults"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
</ScrollView>
|