Skip to content

Commit 2421773

Browse files
authored
Adds a few missed examples (#749)
1 parent a6ffb7b commit 2421773

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed
41.4 KB
Loading
2.73 KB
Loading

watchface/src/main/res/raw/watchface_dynamic_appearance.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,13 @@
4141
</Ellipse>
4242
</PartDraw>
4343
<!-- [END android_watch_face_dynamic_appearance_balls] -->
44+
45+
<!-- [START android_watch_face_dynamic_appearance_agif] -->
46+
<PartAnimatedImage x="0" y="0" width="450" height="450">
47+
<AnimationController play="ON_VISIBLE"/>
48+
<AnimatedImage resource="animation" format="AGIF"/>
49+
<Thumbnail resource="animation_thumbnail" />
50+
</PartAnimatedImage>
51+
<!-- [END android_watch_face_dynamic_appearance_agif] -->
4452
</Scene>
4553
</WatchFace>

watchface/src/main/res/raw/watchface_effects.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,50 @@
8484
</PartText>
8585
</Group>
8686
<!-- [END android_watch_face_effect_blend_mode_combo] -->
87+
88+
<!-- [START android_watch_face_effect_blend_mode_before_render] -->
89+
<Group name="container" x="75" y="100" width="300" height="300">
90+
<PartDraw x="25" y="15" width="150" height="150">
91+
<Rectangle x="0" y="0" width="150" height="150">
92+
<Fill color="#ffd3ba" />
93+
</Rectangle>
94+
</PartDraw>
95+
<PartDraw x="100" y="15" width="150" height="150" blendMode="HUE">
96+
<Ellipse x="0" y="0" width="150" height="150">
97+
<Fill color="#219ebc" />
98+
</Ellipse>
99+
</PartDraw>
100+
<PartDraw x="100" y="15" width="150" height="150" renderMode="MASK">
101+
<Rectangle x="0" y="0" width="150" height="150">
102+
<Fill color="#ffffff" />
103+
</Rectangle>
104+
</PartDraw>
105+
<PartText x="35" y="60" width="300" height="120" blendMode="COLOR_BURN">
106+
<Text align="START">
107+
<Font family="pacifico" size="96" weight="BOLD" color="#fb5607">Hello!</Font>
108+
</Text>
109+
</PartText>
110+
</Group>
111+
<!-- [END android_watch_face_effect_blend_mode_before_render] -->
112+
113+
<!-- [START android_watch_face_effect_tintcolor] -->
114+
<Group x="75" y="100" width="350" height="350" name="group1" tintColor="#ffd3ba">
115+
<PartDraw x="25" y="0" width="100" height="100">
116+
<Rectangle x="0" y="0" width="100" height="100">
117+
<Fill color="#ffffff" />
118+
</Rectangle>
119+
</PartDraw>
120+
<PartDraw x="150" y="0" width="100" height="100">
121+
<Ellipse x="25" y="0" width="100" height="100">
122+
<Fill color="#ffffff" />
123+
</Ellipse>
124+
</PartDraw>
125+
<PartText x="0" y="150" width="300" height="80">
126+
<Text align="CENTER">
127+
<Font family="pacifico" size="72" weight="BOLD" color="#ffffff">Hello!</Font>
128+
</Text>
129+
</PartText>
130+
</Group>
131+
<!-- [END android_watch_face_effect_tintcolor] -->
87132
</Scene>
88133
</WatchFace>

0 commit comments

Comments
 (0)