<?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"
    tools:context=".authentication.twofactor.ui.TwoFAFragment">

    <TextView
        android:id="@+id/text_sign_in_to_your_server"
        style="@style/Authentication.Headline.TextView"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:layout_marginStart="21dp"
        android:layout_marginTop="30dp"
        android:text="Two-factor Authentication" />

    <TextView
        android:id="@+id/text_description"
        style="@style/Authentication.Description.TextView"
        android:text="What’s your 2FA code?"
        app:layout_constraintTop_toBottomOf="@id/text_sign_in_to_your_server"
        app:layout_constraintStart_toStartOf="@id/text_sign_in_to_your_server"
        android:layout_marginTop="4dp" />

    <EditText
        android:id="@+id/text_two_factor_auth"
        style="@style/Authentication.EditText"
        android:layout_below="@id/text_sign_in_to_your_server"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@id/text_description"
        android:layout_marginTop="16dp"
        android:drawableStart="@drawable/ic_vpn_key_black_24dp"
        android:hint="@string/msg_2fa_code"
        android:imeOptions="actionDone"
        android:inputType="number" />

    <Button
        android:id="@+id/button_log_in"
        style="@style/Authentication.Button"
        android:text="@string/action_confirm"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@id/text_two_factor_auth"
        android:layout_marginTop="20dp" />

    <com.wang.avi.AVLoadingIndicatorView
        android:id="@+id/view_loading"
        style="@style/Authentication.AVLoadingIndicatorView"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        android:visibility="gone"
        tools:visibility="visible" />

</androidx.constraintlayout.widget.ConstraintLayout>