<?xml version="1.0" encoding="utf-8"?>
<!--typography, buttons 05.04-->
<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="match_parent">

    <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" />

    <TextView
        android:id="@+id/tvRelationHeader"
        style="@style/TextView.UXStyle.Titles.1"
        android:layout_width="0dp"
        android:layout_height="48dp"
        android:layout_marginStart="@dimen/dp_20"
        android:layout_marginTop="6dp"
        android:layout_marginEnd="@dimen/dp_20"
        android:gravity="center"
        android:maxLines="1"
        android:singleLine="true"
        android:ellipsize="end"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/dragger"
        tools:text="Date"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/tvToday"
        style="@style/TextView.UXStyle.Body"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="20dp"
        android:layout_marginTop="12dp"
        android:layout_marginEnd="8dp"
        android:text="@string/today"
        app:layout_constraintEnd_toStartOf="@+id/ivTodayCheck"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/view_no_date"
        app:layout_goneMarginEnd="@dimen/dp_20"
        tools:text="Today" />

    <View
        android:id="@+id/view"
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:layout_marginStart="20dp"
        android:layout_marginTop="12dp"
        android:layout_marginEnd="20dp"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/tvToday" />

    <TextView
        android:id="@+id/tvYesterday"
        style="@style/TextView.UXStyle.Body"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="20dp"
        android:layout_marginTop="12dp"
        android:layout_marginEnd="8dp"
        android:text="@string/yesterday"
        app:layout_constraintEnd_toStartOf="@+id/ivYesterdayCheck"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/view"
        app:layout_goneMarginEnd="@dimen/dp_20"
        tools:text="Yesterday" />

    <View
        android:id="@+id/view1"
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:layout_marginStart="20dp"
        android:layout_marginTop="12dp"
        android:layout_marginEnd="20dp"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/tvYesterday" />

    <TextView
        android:id="@+id/tvTomorrow"
        style="@style/TextView.UXStyle.Body"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="20dp"
        android:layout_marginTop="12dp"
        android:layout_marginEnd="8dp"
        android:text="@string/tomorrow"
        app:layout_constraintEnd_toStartOf="@+id/ivTomorrowCheck"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/view1"
        app:layout_goneMarginEnd="@dimen/dp_20"
        tools:text="Tomorrow" />

    <View
        android:id="@+id/view2"
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:layout_marginStart="20dp"
        android:layout_marginTop="12dp"
        android:layout_marginEnd="20dp"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/tvTomorrow" />

    <TextView
        android:id="@+id/tvExactDay"
        style="@style/TextView.UXStyle.Body"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="20dp"
        android:layout_marginTop="12dp"
        android:text="@string/exact_day"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/view2"
        app:layout_goneMarginEnd="@dimen/dp_20"
        tools:text="Exact day" />

    <TextView
        android:id="@+id/tvDate"
        style="@style/TextView.UXStyle.Body"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="4dp"
        android:gravity="end"
        android:textColor="@color/text_secondary"
        app:layout_constraintBottom_toBottomOf="@+id/tvExactDay"
        app:layout_constraintEnd_toStartOf="@+id/ivExactDayCheck"
        app:layout_constraintStart_toEndOf="@+id/tvExactDay"
        app:layout_constraintTop_toTopOf="@+id/tvExactDay"
        tools:text="28 January 2020" />

    <ImageView
        android:id="@+id/ivExactDayCheck"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="20dp"
        android:src="@drawable/ic_option_checked"
        android:visibility="invisible"
        app:layout_constraintBottom_toBottomOf="@+id/tvDate"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@+id/tvDate"
        tools:visibility="visible" />

    <ImageView
        android:id="@+id/ivTomorrowCheck"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="20dp"
        android:src="@drawable/ic_option_checked"
        android:visibility="invisible"
        app:layout_constraintBottom_toBottomOf="@+id/tvTomorrow"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@+id/tvTomorrow"
        tools:visibility="visible" />

    <ImageView
        android:id="@+id/ivYesterdayCheck"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="20dp"
        android:src="@drawable/ic_option_checked"
        android:visibility="invisible"
        app:layout_constraintBottom_toBottomOf="@+id/tvYesterday"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@+id/tvYesterday"
        tools:visibility="visible" />

    <ImageView
        android:id="@+id/ivTodayCheck"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="20dp"
        android:src="@drawable/ic_option_checked"
        android:visibility="invisible"
        app:layout_constraintBottom_toBottomOf="@+id/tvToday"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@+id/tvToday"
        tools:visibility="visible" />

    <com.anytypeio.anytype.core_ui.views.ButtonPrimaryLarge
        android:id="@+id/btnBottomAction"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_marginStart="20dp"
        android:layout_marginTop="32dp"
        android:layout_marginEnd="20dp"
        android:text="@string/done"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/tvExactDay" />

    <View
        android:layout_width="match_parent"
        android:layout_height="10dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/btnBottomAction" />

    <ImageView
        android:id="@+id/ivNoDateCheck"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="20dp"
        android:visibility="invisible"
        app:layout_constraintBottom_toBottomOf="@+id/tvNoDate"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@+id/tvNoDate"
        android:src="@drawable/ic_option_checked"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/tvNoDate"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="20dp"
        android:layout_marginTop="12dp"
        android:layout_marginEnd="8dp"
        android:text="@string/no_date"
        style="@style/TextView.UXStyle.Body"
        app:layout_constraintEnd_toStartOf="@+id/ivNoDateCheck"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/tvRelationHeader" />

    <View
        android:id="@+id/view_no_date"
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:layout_marginStart="20dp"
        android:layout_marginTop="12dp"
        android:layout_marginEnd="20dp"
        android:background="@color/shape_primary"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/tvNoDate" />

</androidx.constraintlayout.widget.ConstraintLayout>