• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2008 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 -->
17<screenplay>
18     <paint id="paint" antiAlias="true">
19         <color id="col" color="gray"/>
20     </paint>
21     <event kind="onLoad">
22         <add id="addPaint" use="paint"/>
23         <text y="15" text="hello"/>
24     </event>
25     <event kind="keyPress" code="up">
26         <apply scope="addPaint">
27             <set target="paint" field="linearText" to="true"/>
28             <set target="col" field="color" to="black"/>
29             <animate target="paint" id="grow" field="textSize" from="12" to="15" dur=".25"/>
30         </apply>
31     </event>
32     <event kind="onEnd" target="grow">
33         <apply scope="addPaint">
34             <set target="paint" field="linearText" to="false"/>
35         </apply>
36     </event>
37     <event kind="keyPress" code="down">
38         <apply scope="addPaint">
39             <set target="col" field="color" to="gray"/>
40             <animate target="paint" id="shrink" field="textSize" from="15" to="12" dur=".25"/>
41         </apply>
42     </event>
43     <event kind="onEnd" target="shrink">
44         <apply scope="addPaint">
45             <set target="paint" field="linearText" to="false"/>
46         </apply>
47     </event>
48 </screenplay>
49