<?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"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="?attr/actionBarSize"
        android:visibility="visible"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:navigationIcon="@drawable/ic_x_tinted"
        app:title="@string/EditProfileNameFragment_your_name"
        app:titleTextAppearance="@style/Signal.Text.Title" />

    <com.google.android.material.textfield.TextInputLayout
        android:id="@+id/edit_profile_given_name_wrapper"
        style="@style/Widget.Signal.TextInputLayout.FilledBox"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:hint="@string/EditProfileNameFragment_first_name"
        android:minHeight="56dp"
        android:theme="@style/ThemeOverlay.Signal.EditProfileInput"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/toolbar">

        <org.thoughtcrime.securesms.components.emoji.EmojiEditText
            android:id="@+id/edit_profile_name_given_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:autofillHints="personGivenName"
            android:inputType="textPersonName"
            android:singleLine="true" />

    </com.google.android.material.textfield.TextInputLayout>

    <com.google.android.material.textfield.TextInputLayout
        android:id="@+id/edit_profile_family_name_wrapper"
        style="@style/Widget.Signal.TextInputLayout.FilledBox"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_marginTop="20dp"
        android:hint="@string/EditProfileNameFragment_last_name_optional"
        android:minHeight="56dp"
        android:theme="@style/ThemeOverlay.Signal.EditProfileInput"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/edit_profile_given_name_wrapper">

        <org.thoughtcrime.securesms.components.emoji.EmojiEditText
            android:id="@+id/edit_profile_name_family_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:autofillHints="personFamilyName"
            android:inputType="textPersonName"
            android:singleLine="true" />

    </com.google.android.material.textfield.TextInputLayout>

    <org.thoughtcrime.securesms.util.views.CircularProgressMaterialButton
        android:id="@+id/edit_profile_name_save"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end"
        android:layout_marginEnd="16dp"
        android:layout_marginBottom="16dp"
        app:circularProgressMaterialButton__label="@string/EditProfileNameFragment_save"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>