<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <FrameLayout
        android:id="@+id/topBackButton"
        android:layout_width="56dp"
        android:layout_height="48dp"
        android:layout_gravity="center_vertical">

        <ImageView
            android:id="@+id/ivTopBackButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:src="@drawable/ic_default_top_back" />

    </FrameLayout>

    <com.anytypeio.anytype.core_ui.widgets.StatusBadgeWidget
        android:id="@+id/statusBadge"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_gravity="center_vertical|end"
        android:scaleType="center"
        android:layout_marginEnd="54dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"/>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginStart="48dp"
        android:layout_marginEnd="48dp">

        <LinearLayout
            android:id="@+id/titleContainer"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_gravity="center"
            tools:visibility="gone">

            <com.anytypeio.anytype.core_ui.widgets.ObjectIconWidget
                android:id="@+id/ivTopToolbarIcon"
                android:layout_width="18dp"
                android:layout_height="18dp"
                android:layout_gravity="center_vertical"
                android:layout_marginEnd="6dp"
                app:imageSize="18dp"
                app:emojiSize="18dp"
                app:checkboxSize="18dp"
                app:initialTextSize="11sp"
                android:visibility="gone"
                tools:visibility="visible" />

            <TextView
                android:id="@+id/tvTopToolbarTitle"
                style="@style/TextView.ContentStyle.PreviewTitles.2.Regular"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:drawablePadding="6dp"
                android:gravity="center_vertical"
                android:maxLines="1"
                android:ellipsize="end"
                android:singleLine="true"
                tools:text="Your favorite movies" />

        </LinearLayout>

        <TextView
            android:id="@+id/tvTemplates"
            style="@style/TextView.UXStyle.Captions.1.Medium"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_gravity="center"
            android:gravity="center_vertical"
            android:drawableEnd="@drawable/ic_templates_expand"
            android:drawablePadding="@dimen/dp_2"
            tools:text="This type has 2 templates">

        </TextView>

    </FrameLayout>

    <FrameLayout
        android:id="@+id/threeDotsButton"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_gravity="end|center_vertical"
        android:layout_marginEnd="14dp">

        <ImageView
            android:id="@+id/ivThreeDots"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:src="@drawable/ic_action_more" />

    </FrameLayout>

</merge>