<?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"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    xmlns:tools="http://schemas.android.com/tools">

    <View
        android:id="@+id/dragger"
        android:layout_width="48dp"
        android:layout_height="4dp"
        android:layout_marginTop="6dp"
        android:background="@drawable/dragger"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <com.anytypeio.anytype.core_ui.widgets.ObjectMenuItemWidget
        android:id="@+id/optionIcon"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="12dp"
        android:background="@drawable/default_ripple"
        app:icon="@drawable/ic_object_menu_icon"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/dragger"
        app:subtitle="@string/icon_description"
        app:title="@string/icon" />

    <View
        android:id="@+id/iconDivider"
        android:layout_width="0dp"
        android:layout_height="0.5dp"
        android:layout_marginStart="72dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="16dp"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/optionIcon" />

    <com.anytypeio.anytype.core_ui.widgets.ObjectMenuItemWidget
        android:id="@+id/optionCover"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:background="@drawable/default_ripple"
        app:icon="@drawable/ic_object_menu_cover"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/iconDivider"
        app:subtitle="@string/cover_description"
        app:title="@string/cover" />

    <View
        android:id="@+id/coverDivider"
        android:layout_width="0dp"
        android:layout_height="0.5dp"
        android:layout_marginStart="72dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="16dp"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/optionCover" />

    <com.anytypeio.anytype.core_ui.widgets.ObjectMenuItemWidget
        android:id="@+id/optionLayout"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:background="@drawable/default_ripple"
        app:icon="@drawable/ic_object_menu_layout"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/coverDivider"
        app:subtitle="@string/layout_description"
        app:title="@string/layout" />

    <View
        android:id="@+id/layoutDivider"
        android:layout_width="0dp"
        android:layout_height="0.5dp"
        android:layout_marginStart="72dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="16dp"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/optionLayout" />

    <com.anytypeio.anytype.core_ui.widgets.ObjectMenuItemWidget
        android:id="@+id/optionRelations"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:background="@drawable/default_ripple"
        app:icon="@drawable/ic_object_menu_relations"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/layoutDivider"
        app:subtitle="@string/relations_description"
        app:title="@string/relations" />

    <View
        android:id="@+id/relationsDivider"
        android:layout_width="0dp"
        android:layout_height="0.5dp"
        android:layout_marginStart="72dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="16dp"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/optionRelations" />

    <com.anytypeio.anytype.core_ui.widgets.ObjectMenuItemWidget
        android:id="@+id/optionHistory"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:background="@drawable/default_ripple"
        app:icon="@drawable/ic_object_menu_history"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/relationsDivider"
        app:subtitle="@string/history_description"
        app:title="@string/history" />

    <View
        android:id="@+id/historyDivider"
        android:layout_width="0dp"
        android:layout_height="0.5dp"
        android:layout_marginStart="72dp"
        android:layout_marginTop="8dp"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/optionHistory" />

    <com.anytypeio.anytype.core_ui.widgets.ObjectMenuItemWidget
        android:id="@+id/objectDiagnostics"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:background="@drawable/default_ripple"
        app:icon="@drawable/ic_object_menu_diagnostics"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/historyDivider"
        app:subtitle="@string/object_debug"
        app:title="@string/object_diagnostics" />

    <View
        android:id="@+id/objectDiagnosticsDivider"
        android:layout_width="0dp"
        android:layout_height="0.5dp"
        android:layout_marginStart="72dp"
        android:layout_marginTop="8dp"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/objectDiagnostics" />

    <com.anytypeio.anytype.core_ui.widgets.ObjectMenuItemWidget
        android:id="@+id/debugGoroutines"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:background="@drawable/default_ripple"
        android:visibility="gone"
        app:icon="@drawable/ic_object_menu_debug_goroutines"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/objectDiagnosticsDivider"
        app:subtitle="Command Debug.StackGoroutines"
        app:title="Debug Goroutines"
        tools:visibility="visible" />

    <View
        android:id="@+id/debugGoroutinesDivider"
        android:layout_width="0dp"
        android:layout_height="0.5dp"
        android:layout_marginStart="72dp"
        android:layout_marginTop="8dp"
        android:visibility="gone"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/debugGoroutines" />

    <FrameLayout
        android:id="@+id/rvContainer"
        android:layout_width="match_parent"
        android:layout_height="108dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/debugGoroutinesDivider">

        <androidx.recyclerview.widget.RecyclerView
            android:layout_gravity="center_vertical"
            android:id="@+id/rvActions"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

    </FrameLayout>

    <View
        android:id="@+id/anchor"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        />
</androidx.constraintlayout.widget.ConstraintLayout>