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

    <ImageView
        android:id="@+id/cover"
        android:layout_width="0dp"
        android:layout_height="200dp"
        android:scaleType="centerCrop"
        android:visibility="gone"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintEnd_toEndOf="parent"/>

    <com.google.android.material.imageview.ShapeableImageView
        android:id="@+id/imageIcon"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:maxHeight="443dp"
        android:layout_marginTop="50dp"
        android:paddingStart="20dp"
        android:paddingEnd="20dp"
        android:scaleType="centerCrop"
        android:adjustViewBounds="true"
        android:background="@color/shape_tertiary"
        android:transitionName="@string/logo_transition"
        app:layout_constraintTop_toBottomOf="@id/cover"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:shapeAppearance="@style/TitleImageAppearanceOverlay"
        app:strokeColor="@color/shape_tertiary"
        app:strokeWidth="1dp"
        tools:src="@drawable/ic_mime_pdf"/>

    <com.anytypeio.anytype.core_ui.widgets.ObjectIconWidget
        android:id="@+id/objectIconWidget"
        android:layout_width="64dp"
        android:layout_height="80dp"
        android:layout_marginStart="28dp"
        android:visibility="gone"
        android:layout_marginTop="16dp"
        android:background="@drawable/bg_title_file_icon"
        android:transitionName="@string/logo_transition"
        app:imageSize="80dp"
        app:layout_constraintTop_toBottomOf="@id/imageIcon"
        app:layout_constraintStart_toStartOf="parent"
        tools:src="@drawable/ic_mime_pdf"/>

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

</androidx.constraintlayout.widget.ConstraintLayout>