-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmotion_3_screens_combined_polished.xml
151 lines (133 loc) · 5.01 KB
/
motion_3_screens_combined_polished.xml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?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"
app:defaultDuration="1000">
<Transition
android:id="@+id/transition_poster"
app:constraintSetEnd="@+id/frame_poster_middle"
app:constraintSetStart="@+id/frame_poster_top">
<OnClick
app:clickAction="toggle"
app:targetId="@+id/card_movie_poster"/>
<KeyFrameSet>
<KeyPosition
app:framePosition="90"
app:keyPositionType="parentRelative"
app:motionTarget="@+id/card_movie_poster"
app:percentX="1"
app:percentY=".5"
/>
<KeyPosition
app:framePosition="90"
app:keyPositionType="parentRelative"
app:motionTarget="@+id/card_movie_info"
app:percentHeight="1"
app:percentWidth="1"
app:percentX="0"
app:percentY=".5"
/>
</KeyFrameSet>
</Transition>
<Transition
android:id="@+id/transition_more_movies"
app:constraintSetEnd="@+id/frame_more_movies_expanded"
app:constraintSetStart="@+id/frame_poster_top">
<OnSwipe
app:dragDirection="dragUp"
app:touchRegionId="@+id/card_more_movies"
app:touchAnchorId="@+id/card_more_movies"/>
</Transition>
<ConstraintSet android:id="@+id/frame_poster_middle">
<Constraint android:id="@+id/card_movie_poster">
<Layout
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginEnd="24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="2:3"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/guideline_vertical_48"
app:layout_constraintTop_toTopOf="parent"
/>
<CustomAttribute
app:attributeName="cardElevation"
app:customDimension="2dp"/>
</Constraint>
<Constraint android:id="@+id/card_movie_info">
<Layout
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintEnd_toEndOf="@+id/guideline_vertical_52"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>
</Constraint>
<Constraint android:id="@+id/card_more_movies">
<Layout
android:layout_width="128dp"
android:layout_height="128dp"
app:layout_constraintTop_toTopOf="@+id/guideline_horizontal_93"
app:layout_constraintStart_toStartOf="@+id/guideline_vertical_70"
/>
</Constraint>
<Constraint android:id="@+id/card_more_movies">
<Layout
android:layout_width="400dp"
android:layout_height="128dp"
app:layout_constraintTop_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/guideline_vertical_60"
/>
</Constraint>
</ConstraintSet>
<ConstraintSet
android:id="@+id/frame_poster_top">
<Constraint android:id="@+id/card_movie_poster">
<Layout
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="24dp"
app:layout_constraintDimensionRatio="2:3"
app:layout_constraintEnd_toStartOf="@+id/guideline_vertical_52"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/guideline_horizontal_10"/>
<CustomAttribute
app:attributeName="cardElevation"
app:customDimension="16dp"/>
</Constraint>
<Constraint android:id="@+id/card_movie_info">
<Layout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="48dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/guideline_horizontal_10"
/>
</Constraint>
<Constraint android:id="@+id/card_more_movies">
<Layout
android:layout_width="400dp"
android:layout_height="128dp"
app:layout_constraintTop_toTopOf="@+id/guideline_horizontal_93"
app:layout_constraintStart_toStartOf="@+id/guideline_vertical_60"
/>
</Constraint>
</ConstraintSet>
<ConstraintSet app:deriveConstraintsFrom="@+id/frame_poster_top"
android:id="@+id/frame_more_movies_expanded">
<Constraint android:id="@+id/card_more_movies">
<Layout
app:layout_constraintBottom_toBottomOf="parent"
android:layout_width="match_parent"
android:layout_height="224dp"
/>
</Constraint>
<Constraint android:id="@+id/view_grey_out">
<PropertySet android:alpha=".2"/>
</Constraint>
</ConstraintSet>
</MotionScene>