<?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:id="@+id/container"
    style="@style/parent_constraint_layout"
    tools:context=".ui.update.UpdateProfileFragment">

    <TextView
        android:id="@+id/login_title_tv"
        style="@style/headerStyle"
        android:text="@string/update_profile"
        android:layout_marginBottom="12dp"
        app:layout_constraintBottom_toTopOf="@id/login_subtitle_tv"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <TextView
        android:id="@+id/login_subtitle_tv"
        style="@style/subheader"
        android:layout_marginBottom="24dp"
        android:text="@string/update_profile_section_subtitle"
        app:layout_constraintBottom_toTopOf="@id/profile_img"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <com.mikhaellopez.circularimageview.CircularImageView
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:alpha="1"
        android:elevation="1dp"
        android:scaleType="centerInside"
        android:src="@drawable/ic_baseline_photo_library_24"
        app:civ_border_width="1dp"
        app:civ_circle_color="@color/colour_one"
        app:civ_shadow_radius="0.5dp"
        app:layout_constraintBottom_toBottomOf="@id/profile_img"
        app:layout_constraintRight_toRightOf="@id/profile_img" />

    <com.mikhaellopez.circularimageview.CircularImageView
        android:id="@+id/profile_img"
        android:layout_width="120dp"
        android:layout_height="120dp"
        app:civ_border_width="3dp"
        app:civ_shadow_radius="1dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintBottom_toTopOf="@id/til_new_email"
        tools:src="@drawable/choice_img_round" />

    <com.google.android.material.textfield.TextInputLayout
        android:id="@+id/til_new_email"
        style="@style/text_input_layout"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent">

        <EditText
            android:id="@+id/update_name"
            style="@style/EditTextStyle"
            android:hint="@string/prompt_insert_name"
            android:inputType="textPersonName"
            android:autofillHints="name" />
    </com.google.android.material.textfield.TextInputLayout>

    <com.google.android.material.button.MaterialButton
        android:id="@+id/submit"
        style="@style/TextButton.WithIcon"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/submit"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/til_new_email"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.8" />

</androidx.constraintlayout.widget.ConstraintLayout>
