<?xml version="1.0" encoding="utf-8"?>
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:motion="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="urn:oasis:names:tc:xliff:document:1.2">

    <Transition
        motion:constraintSetEnd="@+id/end"
        motion:constraintSetStart="@id/start">
        <OnSwipe
            motion:dragDirection="dragUp"
            motion:touchAnchorId="@id/gridContainer"
            motion:touchAnchorSide="top" />
    </Transition>

    <ConstraintSet android:id="@+id/start">
        <Constraint
            android:id="@+id/topToolbar"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toTopOf="parent"
            app:visibilityMode="ignore"
            motion:visibilityMode="ignore">
            <PropertySet android:visibility="gone" />
        </Constraint>
        <Constraint
            android:id="@+id/objectHeader"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toTopOf="parent"
            motion:visibilityMode="ignore">
            <PropertySet android:alpha="1" />
        </Constraint>
        <Constraint
            android:id="@+id/dataViewHeader"
            android:layout_width="0dp"
            android:layout_height="@dimen/default_collection_dv_header_height"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toBottomOf="@+id/objectHeader"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/controlDivider2"
            android:layout_width="0dp"
            android:layout_height="@dimen/data_view_divider_height"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toBottomOf="@+id/dataViewHeader"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/paginatorToolbar"
            android:layout_width="0dp"
            android:layout_height="@dimen/default_toolbar_height"
            motion:layout_constraintBottom_toTopOf="@+id/bottomToolbarBox"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/dvProgressBar"
            motion:layout_constraintBottom_toBottomOf="@+id/gridContainer"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/unsupportedViewError"
            motion:layout_constraintBottom_toBottomOf="parent"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toTopOf="@+id/gridContainer"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/galleryView"
            motion:layout_constraintBottom_toTopOf="@id/paginatorToolbar"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toBottomOf="@+id/controlDivider2"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/listView"
            motion:layout_constraintBottom_toTopOf="@id/paginatorToolbar"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toBottomOf="@+id/controlDivider2"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/dataViewInfo"
            android:layout_width="0dp"
            android:layout_height="190dp"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toBottomOf="@id/dataViewHeader"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@id/initState"
            android:layout_width="0dp"
            android:layout_height="0dp"
            motion:layout_constraintBottom_toBottomOf="parent"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toTopOf="parent"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@id/templatesWidget">
            <PropertySet
                tools:applyMotionScene="false"
                tools:visibilityMode="ignore"/>
        </Constraint>
        <Constraint
            android:id="@id/syncStatusWidget">
            <PropertySet
                tools:applyMotionScene="false"
                tools:visibilityMode="ignore"/>
        </Constraint>
    </ConstraintSet>

    <ConstraintSet android:id="@+id/end">
        <Constraint
            android:id="@+id/topToolbar"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toTopOf="parent"
            app:visibilityMode="ignore"
            motion:visibilityMode="ignore">
            <PropertySet android:visibility="gone" />
        </Constraint>
        <Constraint
            android:id="@+id/objectHeader"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            motion:layout_constraintBottom_toTopOf="parent"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:visibilityMode="ignore">
            <PropertySet android:alpha="0" />
        </Constraint>
        <Constraint
            android:id="@+id/dataViewHeader"
            android:layout_width="0dp"
            android:layout_height="@dimen/default_collection_dv_header_height"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toBottomOf="@+id/topToolbar"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/controlDivider2"
            android:layout_width="0dp"
            android:layout_height="@dimen/data_view_divider_height"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toBottomOf="@+id/dataViewHeader"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/paginatorToolbar"
            android:layout_width="0dp"
            android:layout_height="@dimen/default_toolbar_height"
            motion:layout_constraintBottom_toTopOf="@+id/bottomToolbarBox"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/dvProgressBar"
            motion:layout_constraintBottom_toBottomOf="@+id/gridContainer"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/unsupportedViewError"
            motion:layout_constraintBottom_toBottomOf="parent"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toTopOf="@+id/gridContainer"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/galleryView"
            motion:layout_constraintBottom_toTopOf="@id/paginatorToolbar"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toBottomOf="@+id/controlDivider2"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/listView"
            motion:layout_constraintBottom_toTopOf="@id/paginatorToolbar"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toBottomOf="@+id/controlDivider2"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@+id/dataViewInfo"
            android:layout_width="0dp"
            android:layout_height="190dp"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toBottomOf="@id/dataViewHeader"
            motion:visibilityMode="ignore" />
        <Constraint
            android:id="@id/initState"
            android:layout_width="0dp"
            android:layout_height="0dp"
            motion:layout_constraintBottom_toBottomOf="parent"
            motion:layout_constraintEnd_toEndOf="parent"
            motion:layout_constraintStart_toStartOf="parent"
            motion:layout_constraintTop_toTopOf="parent"
            motion:visibilityMode="ignore" />

        <Constraint
            android:id="@id/templatesWidget">
            <PropertySet
                tools:applyMotionScene="false"
                tools:visibilityMode="ignore"/>
        </Constraint>
        <Constraint
            android:id="@id/syncStatusWidget">
            <PropertySet
                tools:applyMotionScene="false"
                tools:visibilityMode="ignore"/>
        </Constraint>
    </ConstraintSet>

</MotionScene>