<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    tools:viewBindingIgnore="true"
    xmlns:tools="http://schemas.android.com/tools"
    tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">

    <View
        android:id="@+id/toolbar_background"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:alpha="0"
        android:background="?attr/colorSurfaceContainer"
        app:layout_constraintBottom_toBottomOf="@id/toolbar"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@id/toolbar" />

    <org.thoughtcrime.securesms.util.views.DarkOverflowToolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="@dimen/signal_m3_toolbar_height"
        android:minHeight="@dimen/signal_m3_toolbar_height"
        android:theme="?attr/settingsToolbarStyle"
        app:contentInsetStartWithNavigation="60dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:navigationIcon="@drawable/symbol_arrow_start_24">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="start">

            <FrameLayout
                android:id="@+id/toolbar_avatar_container"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:alpha="0"
                android:translationY="56dp"
                tools:alpha="1"
                tools:translationY="0dp">

                <org.thoughtcrime.securesms.components.AvatarImageView
                    android:id="@+id/toolbar_avatar"
                    android:layout_width="36dp"
                    android:layout_height="36dp"
                    app:fallbackImageSize="small" />

                <org.thoughtcrime.securesms.badges.BadgeImageView
                    android:id="@+id/toolbar_badge"
                    android:layout_width="16dp"
                    android:layout_height="16dp"
                    android:layout_marginStart="20dp"
                    android:layout_marginTop="23dp"
                    app:badge_size="small" />

            </FrameLayout>

            <org.thoughtcrime.securesms.components.emoji.EmojiTextView
                android:id="@+id/toolbar_title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_marginStart="16dp"
                android:alpha="0"
                android:ellipsize="end"
                android:maxLines="1"
                android:textAppearance="@style/Signal.Text.TitleLarge"
                android:translationY="56dp"
                tools:alpha="1"
                tools:text="Miles Morales"
                tools:translationY="0dp" />

        </LinearLayout>

    </org.thoughtcrime.securesms.util.views.DarkOverflowToolbar>
</merge>