1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 Copyright 2014 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>ElevationBasic</name> 22 <group>UI</group> 23 <package>com.example.android.elevationbasic</package> 24 25 26 27 <!-- change minSdk if needed--> 28 <minSdk>21</minSdk> 29 <compileSdkVersion>21</compileSdkVersion> 30 31 32 <strings> 33 <intro> 34 <![CDATA[ 35 This sample demonstrates two alternative ways to move a view in the z-axis. The 36 first view has a fixed elevation using XML and the second one is raised when the user 37 taps on it, using setTranslationZ(). 38 ]]> 39 </intro> 40 <sample_action>Elevation Basic</sample_action> 41 </strings> 42 43 <template src="base"/> 44 <template src="FragmentView"/> 45 <common src="logger"/> 46 <common src="activities"/> 47 48 </sample> 49