<?xml version="1.0" encoding="utf-8"?>
<!--typography, buttons 05.04-->
<androidx.constraintlayout.motion.widget.MotionLayout 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="match_parent"
    android:background="@color/background_primary"
    android:focusable="true"
    android:focusableInTouchMode="true"
    app:layoutDescription="@xml/fragment_object_set_scene"
    tools:context="com.anytypeio.anytype.ui.sets.ObjectSetFragment">

    <include
        android:id="@+id/objectHeader"
        layout="@layout/layout_object_set_header"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <include
        android:id="@+id/dataViewHeader"
        layout="@layout/layout_object_set_dv_header"
        android:layout_width="0dp"
        android:layout_height="@dimen/default_collection_dv_header_height"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/objectHeader" />

    <View
        android:id="@+id/controlDivider2"
        android:layout_width="0dp"
        android:layout_height="@dimen/data_view_divider_height"
        android:background="@color/shape_primary"
        android:visibility="invisible"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/dataViewHeader" />

    <include
        android:id="@+id/gridContainer"
        layout="@layout/item_viewer_container"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintBottom_toTopOf="@id/paginatorToolbar"
        app:layout_constraintTop_toBottomOf="@+id/controlDivider2"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        />

    <com.anytypeio.anytype.core_ui.widgets.dv.GalleryViewWidget
        android:id="@+id/galleryView"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:paddingTop="10dp"
        app:layout_constraintBottom_toTopOf="@id/paginatorToolbar"
        app:layout_constraintTop_toBottomOf="@+id/controlDivider2"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <com.anytypeio.anytype.core_ui.widgets.dv.ListViewWidget
        android:id="@+id/listView"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:paddingStart="@dimen/dp_20"
        android:paddingEnd="@dimen/dp_20"
        app:layout_constraintBottom_toTopOf="@id/paginatorToolbar"
        app:layout_constraintTop_toBottomOf="@+id/controlDivider2"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <include
        android:id="@+id/bottomPanel"
        layout="@layout/widget_data_view_customize_view"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="10dp"
        android:layout_marginEnd="10dp"
        android:layout_marginBottom="10dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="1.0"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="parent" />

    <com.anytypeio.anytype.core_ui.widgets.toolbar.DataViewPaginatorToolbar
        android:id="@+id/paginatorToolbar"
        android:layout_width="0dp"
        android:layout_height="@dimen/default_toolbar_height"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <TextView
        android:id="@+id/tvError"
        style="@style/dataViewTextErrorStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginBottom="@dimen/dp_48"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        tools:visibility="invisible" />

    <TextView
        android:id="@+id/unsupportedViewError"
        style="@style/dataViewUnsupportedViewErrorStyle"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:gravity="center"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@+id/gridContainer"
        android:visibility="gone"
        tools:visibility="visible" />

    <include
        android:id="@+id/topToolbar"
        layout="@layout/layout_object_set_top_toolbar" />

    <com.anytypeio.anytype.core_ui.widgets.toolbar.DataViewInfo
        android:id="@+id/dataViewInfo"
        android:layout_width="0dp"
        android:layout_height="190dp"
        android:visibility="invisible"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/dataViewHeader"
        tools:visibility="visible" />

    <FrameLayout
        android:id="@+id/bottomToolbarBox"
        android:layout_width="wrap_content"
        android:layout_height="@dimen/default_nav_panel_height"
        android:layout_marginBottom="@dimen/dp_20"
        android:background="@drawable/widget_main_bottom_toolbar_background"
        app:layout_constraintBottom_toTopOf="@+id/bottomPanel"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        tools:visibility="visible">
        <com.anytypeio.anytype.core_ui.widgets.toolbar.MainBottomToolbar
            android:id="@+id/bottomToolbar"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_gravity="center"
            tools:visibility="visible" />
    </FrameLayout>

    <include
        android:id="@+id/initState"
        layout="@layout/collection_loading_state"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone"
        tools:visibility="visible" />

    <androidx.compose.ui.platform.ComposeView
        android:id="@+id/viewersWidget"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"/>

    <androidx.compose.ui.platform.ComposeView
        android:id="@+id/viewerEditWidget"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        />

    <androidx.compose.ui.platform.ComposeView
        android:id="@+id/viewerLayoutWidget"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"/>

    <androidx.compose.ui.platform.ComposeView
        android:id="@+id/templatesWidget"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"/>

    <androidx.compose.ui.platform.ComposeView
        android:id="@+id/titleWidget"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"/>

    <androidx.compose.ui.platform.ComposeView
        android:id="@+id/syncStatusWidget"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

</androidx.constraintlayout.motion.widget.MotionLayout>