2019-08-19 16:50:33 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-11-21 23:41:01 +01:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-08-19 16:50:33 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-11-21 23:41:01 +01:00
|
|
|
android:background="@color/colorPrimary">
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-08-19 16:50:33 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-21 23:41:01 +01:00
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="32dp">
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="128dp"
|
|
|
|
android:layout_height="128dp"
|
|
|
|
android:layout_marginBottom="32dp"
|
|
|
|
android:contentDescription="@string/alt_app_logo"
|
|
|
|
android:src="@drawable/ottershape"
|
|
|
|
android:tint="@android:color/white" />
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
<TextView
|
2019-08-19 16:50:33 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-21 23:41:01 +01:00
|
|
|
android:layout_marginBottom="32dp"
|
|
|
|
android:text="@string/login_welcome"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="@android:color/white" />
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/hostname_field"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:textColorHint="@drawable/login_input"
|
2020-05-29 01:10:12 +02:00
|
|
|
app:boxBackgroundColor="@color/controlAccent"
|
|
|
|
app:boxBackgroundMode="filled"
|
|
|
|
app:boxStrokeWidth="0dp"
|
2019-11-21 23:41:01 +01:00
|
|
|
app:hintTextColor="@drawable/login_input">
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/hostname"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-29 01:10:12 +02:00
|
|
|
android:hint="@string/login_hostname"
|
2019-11-21 23:41:01 +01:00
|
|
|
android:inputType="textUri"
|
|
|
|
android:lines="1"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textCursorDrawable="@null" />
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
2019-11-25 23:14:16 +01:00
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
android:id="@+id/anonymous"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:buttonTint="@android:color/white"
|
2020-05-29 01:10:12 +02:00
|
|
|
android:text="@string/login_anonymous"
|
|
|
|
android:textColor="@android:color/white" />
|
2019-11-25 23:14:16 +01:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/username_field"
|
2019-08-19 16:50:33 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-21 23:41:01 +01:00
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:hint="@string/login_username"
|
|
|
|
android:textColorHint="@drawable/login_input"
|
2020-05-29 01:10:12 +02:00
|
|
|
app:boxBackgroundColor="@color/controlAccent"
|
|
|
|
app:boxBackgroundMode="filled"
|
2019-11-21 23:41:01 +01:00
|
|
|
app:boxStrokeColor="@drawable/login_input"
|
2020-05-29 01:10:12 +02:00
|
|
|
app:boxStrokeWidth="0dp"
|
2019-11-21 23:41:01 +01:00
|
|
|
app:hintTextColor="@drawable/login_input">
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/username"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="textEmailAddress"
|
|
|
|
android:lines="1"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textCursorDrawable="@null" />
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/password_field"
|
2019-08-19 16:50:33 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-21 23:41:01 +01:00
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:hint="@string/login_password"
|
|
|
|
android:textColorHint="@drawable/login_input"
|
2020-05-29 01:10:12 +02:00
|
|
|
app:boxBackgroundColor="@color/controlAccent"
|
|
|
|
app:boxBackgroundMode="filled"
|
2019-11-21 23:41:01 +01:00
|
|
|
app:boxStrokeColor="@drawable/login_input"
|
2020-05-29 01:10:12 +02:00
|
|
|
app:boxStrokeWidth="0dp"
|
2019-11-21 23:41:01 +01:00
|
|
|
app:hintTextColor="@drawable/login_input"
|
|
|
|
app:passwordToggleEnabled="true">
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/password"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="textPassword"
|
|
|
|
android:lines="1"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textCursorDrawable="@null" />
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2019-11-21 23:41:01 +01:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/login"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:backgroundTint="@color/colorAccent"
|
|
|
|
android:text="@string/login_submit"
|
|
|
|
android:textColor="@color/whiteWhileLight" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|