forked from GitHub-Mirror/riotX-android
124 lines
5.2 KiB
XML
124 lines
5.2 KiB
XML
<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">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingStart="24dp"
|
|
android:paddingLeft="24dp"
|
|
android:paddingTop="24dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingRight="24dp"
|
|
android:paddingBottom="80dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/logoImageView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="100dp"
|
|
android:src="@drawable/logo_login" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/VectorTextInputLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:hint="@string/auth_user_name_placeholder">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/loginField"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textEmailAddress"
|
|
android:maxLines="1" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/VectorTextInputLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:hint="@string/auth_password_placeholder">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/passwordField"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ems="10"
|
|
android:inputType="textPassword"
|
|
android:maxLines="1"
|
|
android:paddingEnd="48dp"
|
|
android:paddingRight="48dp"
|
|
tools:ignore="RtlSymmetry" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/passwordReveal"
|
|
android:layout_width="@dimen/layout_touch_size"
|
|
android:layout_height="@dimen/layout_touch_size"
|
|
android:layout_gravity="end"
|
|
android:layout_marginTop="24dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_eye_black"
|
|
android:tint="?attr/colorAccent" />
|
|
|
|
</FrameLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/VectorTextInputLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:hint="@string/auth_home_server">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/homeServerField"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textUri"
|
|
android:maxLines="1" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
android:layout_width="60dp"
|
|
android:layout_height="60dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_margin="8dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toTopOf="@+id/authenticateButton"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/authenticateButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="16dp"
|
|
android:text="@string/auth_login"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|