• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2013 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
18
19
20<sample>
21    <name>RevealEffectBasic</name>
22    <group>UI</group>
23    <package>com.example.android.revealeffectbasic</package>
24
25
26
27    <minSdk>21</minSdk>
28    <compileSdkVersion>21</compileSdkVersion>
29
30
31    <strings>
32        <intro>
33            <![CDATA[
34            Basic sample to demonstrate the reveal effect.
35            ]]>
36        </intro>
37    </strings>
38
39    <metadata>
40        <status>PUBLISHED</status>
41        <categories>UI</categories>
42        <technologies>Android</technologies>
43        <languages>Java</languages>
44        <solutions>Mobile</solutions>
45        <level>INTERMEDIATE</level>
46        <icon>screenshots/icon-web.png</icon>
47        <screenshots>
48            <img>screenshots/1-main.png</img>
49        </screenshots>
50        <api_refs>
51            <android>android.view.ViewAnimationUtils</android>
52            <android>android.animation.Animator</android>
53        </api_refs>
54        <description>
55<![CDATA[
56Sample demonstrating circular reveal effect. It covers creating an
57[Animator][1] with [ViewAnimationUtils][2] as well as defining the parameters
58of the circular reveal including starting position and radius.
59
60
61[1]: https://developer.android.com/reference/android/animation/Animator.html
62[2]: https://developer.android.com/reference/android/view/ViewAnimationUtils.html
63]]>
64        </description>
65        <intro>
66<![CDATA[
67Sample demonstrating circular reveal effect. Reveal animations can be used to
68provide visual continuity when showing or hiding views. With
69[ViewAnimationsUtils.createCircularReveal()][1] you can use the startRadius and
70endRadius to define a hiding or revealing animation. You can also define the
71center of the animation, in this sample the center is x=0, y=0 which defines
72the top left of the View as the center.
73
74Press the *Reveal* button to see the the circular reveal.
75
76[1]: http://developer.android.com/reference/android/view/ViewAnimationUtils.html#createCircularReveal(android.view.View, int, int, float, float)
77]]>
78        </intro>
79    </metadata>
80
81    <template src="base"/>
82    <template src="FragmentView"/>
83    <common src="logger"/>
84    <common src="activities"/>
85
86</sample>
87