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

    <ImageView
        android:id="@+id/cover"
        android:layout_width="0dp"
        android:layout_height="@dimen/default_cover_height"
        android:adjustViewBounds="true"
        android:contentDescription="@string/content_description_document_cover"
        android:scaleType="fitXY"
        android:visibility="gone"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:background="@color/orange"
        tools:visibility="gone" />

    <FrameLayout
        android:id="@+id/docEmojiIconContainer"
        android:layout_width="88dp"
        android:layout_height="88dp"
        android:layout_gravity="bottom"
        android:layout_marginStart="16dp"
        android:layout_marginTop="60dp"
        android:background="@drawable/background_layout_icon_basic"
        android:transitionName="@string/logo_transition"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:visibility="gone">

        <ImageView
            android:id="@+id/emojiIcon"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_gravity="center" />

        <TextView
            android:id="@+id/emojiIconFallback"
            android:maxLines="1"
            android:layout_width="wrap_content"
            android:textSize="40sp"
            android:visibility="gone"
            android:layout_height="wrap_content"
            android:layout_gravity="center" />

    </FrameLayout>

    <com.google.android.material.imageview.ShapeableImageView
        android:id="@+id/imageIcon"
        android:layout_width="96dp"
        android:layout_height="96dp"
        android:layout_gravity="bottom"
        android:layout_marginStart="15dp"
        android:layout_marginTop="51dp"
        android:adjustViewBounds="true"
        android:background="@color/shape_tertiary"
        android:padding="4dp"
        android:transitionName="@string/logo_transition"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:shapeAppearance="@style/TitleImageAppearanceOverlay"
        app:strokeColor="@color/background_primary"
        app:strokeWidth="4dp"
        tools:visibility="gone" />

    <com.anytypeio.anytype.core_ui.widgets.text.TextInputWidget
        android:id="@+id/title"
        style="@style/BlockTitleContentStyle"
        android:layout_width="0dp"
        android:hint="@string/untitled"
        android:paddingStart="20dp"
        android:paddingEnd="20dp"
        app:ignoreDragAndDrop="true"
        android:layout_marginTop="@dimen/dp_32"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/barrier"
        app:onlyPasteAsPlaneText="true"
        tools:text="Title" />

    <androidx.constraintlayout.widget.Barrier
        android:id="@+id/barrier"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:barrierDirection="bottom"
        app:constraint_referenced_ids="docEmojiIconContainer,imageIcon,cover,root" />

</androidx.constraintlayout.widget.ConstraintLayout>