File tree Expand file tree Collapse file tree 3 files changed +30
-8
lines changed
15-milky-way/app/src/main/res Expand file tree Collapse file tree 3 files changed +30
-8
lines changed Original file line number Diff line number Diff line change 18
18
xmlns : tools =" http://schemas.android.com/tools"
19
19
android : layout_width =" match_parent"
20
20
android : layout_height =" match_parent"
21
- app : layoutDescription =" @xml/step3" >
21
+ app : layoutDescription =" @xml/step3"
22
+ app : motionDebug =" SHOW_PATH" >
22
23
23
24
24
25
<ImageView
Original file line number Diff line number Diff line change 26
26
motion : targetId =" @id/moon"
27
27
motion : clickAction =" toggle"
28
28
/>
29
-
30
- <!-- TODO: Add KeyFrameSet and KeyPosition -->
29
+ <KeyFrameSet >
30
+ <KeyPosition
31
+ motion : framePosition =" 50"
32
+ motion : motionTarget =" @id/moon"
33
+ motion : keyPositionType =" parentRelative"
34
+ motion : percentY =" 0.5"
35
+ />
36
+ </KeyFrameSet >
31
37
</Transition >
32
38
33
39
<!-- Constraints to apply at the start of the animation -->
Original file line number Diff line number Diff line change 30
30
31
31
<KeyFrameSet >
32
32
<KeyPosition
33
- motion : framePosition =" 50"
34
- motion : motionTarget =" @id/moon"
35
- motion : keyPositionType =" parentRelative"
36
- motion : percentY =" 0.5"
33
+ motion : framePosition =" 25"
34
+ motion : motionTarget =" @id/moon"
35
+ motion : keyPositionType =" parentRelative"
36
+ motion : percentY =" 0.6"
37
+ motion : percentX =" 0.1"
38
+ />
39
+ <KeyPosition
40
+ motion : framePosition =" 50"
41
+ motion : motionTarget =" @id/moon"
42
+ motion : keyPositionType =" parentRelative"
43
+ motion : percentY =" 0.5"
44
+ motion : percentX =" 0.3"
37
45
/>
38
- <!-- TODO: Add two more KeyPositions to the KeyFrameSet here -->
46
+ <KeyPosition
47
+ motion : framePosition =" 75"
48
+ motion : motionTarget =" @id/moon"
49
+ motion : keyPositionType =" parentRelative"
50
+ motion : percentY =" 0.6"
51
+ motion : percentX =" 0.1"
52
+ />
53
+
39
54
40
55
</KeyFrameSet >
41
56
</Transition >
You can’t perform that action at this time.
0 commit comments