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>ElevationDrag</name>
22    <group>UI</group>
23    <package>com.example.android.elevationdrag</package>
24
25    <!-- change minSdk if needed-->
26    <minSdk>21</minSdk>
27
28    <strings>
29        <intro>
30            <![CDATA[
31            This sample demonstrates a drag and drop action on different shapes. Elevation and
32            z-translation are used to render the shadows and the views are clipped using different
33            Outlines.
34            ]]>
35        </intro>
36        <sample_action>Elevation Drag</sample_action>
37    </strings>
38
39    <template src="base"/>
40    <template src="FragmentView"/>
41    <common src="logger"/>
42    <common src="activities"/>
43    <metadata>
44        <status>PUBLISHED</status>
45        <categories>UI, Views</categories>
46        <technologies>Android</technologies>
47        <languages>Java</languages>
48        <solutions>Mobile</solutions>
49        <level>BEGINNER</level>
50        <icon>screenshots/icon-web.png</icon>
51        <screenshots>
52            <img>screenshots/1-main.png</img>
53        </screenshots>
54        <api_refs>
55            <android>android.view.View</android>
56        </api_refs>
57        <description>
58<![CDATA[
59This sample demonstrates a drag and drop action on different shapes. Elevation and
60z-translation are used to render the shadows and the views are clipped using different
61Outlines.
62]]>
63        </description>
64
65        <intro>
66<![CDATA[
67This sample demonstrates a drag and drop action on different shapes. Elevation and
68z-translation are used to render the shadows and the views are clipped using different
69Outlines.
70
71Elevation is considered the static or initial position of a view on the z axis, while
72translationZ exists for transient states, like animations.
73
74`Z = elevation + translationZ`
75
76See [Assign Elevation to Your Views][1] for more info.
77[1]:https://developer.android.com/training/material/shadows-clipping.html#Elevation
78]]>
79        </intro>
80    </metadata>
81</sample>
82