<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    tools:viewBindingIgnore="true"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical">

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="@dimen/signal_m3_toolbar_height"
        android:minHeight="@dimen/signal_m3_toolbar_height"
        app:navigationIcon="@drawable/ic_check_28_tinted"
        app:title="@string/ContactShareEditActivity__edit_name"
        app:titleTextAppearance="@style/Signal.Text.TitleLarge" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <com.google.android.material.textfield.TextInputLayout
                style="@style/Widget.Signal.TextInputLayout.FilledBox.ContactNameEditor"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="16dp"
                android:minHeight="56dp">

                <org.thoughtcrime.securesms.components.emoji.EmojiEditText
                    android:id="@+id/name_edit_prefix"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/ContactNameEditActivity_prefix"
                    android:textAppearance="@style/Signal.Text.BodyLarge" />

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

            <com.google.android.material.textfield.TextInputLayout
                style="@style/Widget.Signal.TextInputLayout.FilledBox.ContactNameEditor"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="16dp"
                android:minHeight="56dp">

                <org.thoughtcrime.securesms.components.emoji.EmojiEditText
                    android:id="@+id/name_edit_given_name"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/ContactNameEditActivity_given_name"
                    tools:text="@tools:sample/first_names"
                    android:textAppearance="@style/Signal.Text.BodyLarge" />
            </com.google.android.material.textfield.TextInputLayout>

            <com.google.android.material.textfield.TextInputLayout
                style="@style/Widget.Signal.TextInputLayout.FilledBox.ContactNameEditor"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="16dp"
                android:minHeight="56dp">

                <org.thoughtcrime.securesms.components.emoji.EmojiEditText
                    android:id="@+id/name_edit_middle_name"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/ContactNameEditActivity_middle_name"
                    android:textAppearance="@style/Signal.Text.BodyLarge" />
            </com.google.android.material.textfield.TextInputLayout>

            <com.google.android.material.textfield.TextInputLayout
                style="@style/Widget.Signal.TextInputLayout.FilledBox.ContactNameEditor"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="16dp"
                android:minHeight="56dp">

                <org.thoughtcrime.securesms.components.emoji.EmojiEditText
                    android:id="@+id/name_edit_family_name"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/ContactNameEditActivity_family_name"
                    android:textAppearance="@style/Signal.Text.BodyLarge" />
            </com.google.android.material.textfield.TextInputLayout>

            <com.google.android.material.textfield.TextInputLayout
                style="@style/Widget.Signal.TextInputLayout.FilledBox.ContactNameEditor"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <org.thoughtcrime.securesms.components.emoji.EmojiEditText
                    android:id="@+id/name_edit_suffix"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/ContactNameEditActivity_suffix"
                    android:textAppearance="@style/Signal.Text.BodyLarge" />
            </com.google.android.material.textfield.TextInputLayout>


        </LinearLayout>

    </ScrollView>

</LinearLayout>