aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml/item_post_with_preview_scene.xml
blob: dc28317ac58a5e2b668b58c054e3e4a5b4ad9a45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="utf-8"?>
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <ConstraintSet android:id="@+id/start">
        <Constraint android:id="@+id/material_card_view_item_post_with_preview" />
    </ConstraintSet>

    <ConstraintSet android:id="@+id/end">
        <Constraint android:id="@id/material_card_view_item_post_with_preview"
            android:layout_width="0dp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintWidth_percent="0.7" />
    </ConstraintSet>

    <Transition
        app:constraintSetEnd="@id/end"
        app:constraintSetStart="@+id/start">

        <OnSwipe
            app:dragDirection="dragRight"
            app:touchAnchorId="@id/material_card_view_item_post_with_preview"
            app:touchAnchorSide="right" />

    </Transition>
</MotionScene>