137 lines
5.9 KiB
XML
137 lines
5.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
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:orientation="vertical"
|
|
tools:context=".ui.activities.LoginActivity">
|
|
|
|
<include layout="@layout/status_bar"
|
|
android:id="@+id/status_bar"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
style="@style/Toolbar"
|
|
android:id="@+id/toolbar"
|
|
android:background="@android:color/transparent"
|
|
app:layout_constraintTop_toBottomOf="@id/status_bar"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="40dp"
|
|
android:layout_marginBottom="40dp"
|
|
app:srcCompat="@drawable/ic_launcher_nodpi"
|
|
tools:ignore="ContentDescription"
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/username_layout" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:id="@+id/username_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:textColorHint="?android:textColorHint"
|
|
app:boxCornerRadiusBottomEnd="24dp"
|
|
app:boxCornerRadiusBottomStart="24dp"
|
|
app:boxCornerRadiusTopEnd="24dp"
|
|
app:boxCornerRadiusTopStart="24dp"
|
|
app:errorEnabled="true"
|
|
app:endIconMode="clear_text"
|
|
app:endIconTint="?android:textColorSecondary"
|
|
app:boxStrokeColor="?android:textColorSecondary"
|
|
app:hintTextColor="?android:textColorSecondary"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/password_layout">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/username"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textNoSuggestions"
|
|
android:hint="@string/username" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:id="@+id/password_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:textColorHint="?android:textColorHint"
|
|
app:boxCornerRadiusBottomEnd="24dp"
|
|
app:boxCornerRadiusBottomStart="24dp"
|
|
app:boxCornerRadiusTopEnd="24dp"
|
|
app:boxCornerRadiusTopStart="24dp"
|
|
app:errorEnabled="true"
|
|
app:endIconMode="password_toggle"
|
|
app:endIconTint="?android:textColorSecondary"
|
|
app:boxStrokeColor="?android:textColorSecondary"
|
|
app:hintTextColor="?android:textColorSecondary"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/server_layout">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textPassword"
|
|
android:hint="@string/password" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:id="@+id/server_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:textColorHint="?android:textColorHint"
|
|
app:boxCornerRadiusBottomEnd="24dp"
|
|
app:boxCornerRadiusBottomStart="24dp"
|
|
app:boxCornerRadiusTopEnd="24dp"
|
|
app:boxCornerRadiusTopStart="24dp"
|
|
app:errorEnabled="true"
|
|
app:endIconMode="clear_text"
|
|
app:endIconTint="?android:textColorSecondary"
|
|
app:boxStrokeColor="?android:textColorSecondary"
|
|
app:hintTextColor="?android:textColorSecondary"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/login">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/server"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textUri"
|
|
android:hint="@string/server" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/login"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="64dp"
|
|
android:layout_margin="32dp"
|
|
android:text="@string/login"
|
|
app:cornerRadius="24dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|