Home | History | Annotate | Download | only in Interpolator
      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>Interpolator</name>
     22     <group>UI</group>
     23     <package>com.example.android.interpolator</package>
     24 
     25     <!-- change minSdk if needed-->
     26     <minSdk>21</minSdk>
     27 
     28     <strings>
     29         <intro>
     30             <![CDATA[
     31             This sample demonstrates the use of animation interpolators and path animations for
     32             Material Design. It shows how an ObjectAnimator is used to animate two properties of a
     33             view (scale X and Y) along a path.
     34             ]]>
     35         </intro>
     36     </strings>
     37 
     38     <template src="base"/>
     39     <template src="FragmentView"/>
     40 
     41     <common src="logger"/>
     42     <common src="activities"/>
     43     <metadata>
     44         <status>PUBLISHED</status>
     45         <categories>Design, Transitions, Input</categories>
     46         <technologies>Android</technologies>
     47         <languages>Java</languages>
     48         <solutions>Mobile</solutions>
     49         <level>INTERMEDIATE</level>
     50         <icon>screenshots/icon-web.png</icon>
     51         <screenshots>
     52             <img>screenshots/before.png</img>
     53             <img>screenshots/after.png</img>
     54         </screenshots>
     55         <api_refs>
     56             <android>android.animation.ObjectAnimator</android>
     57             <android>android.view.animation.Interpolator</android>
     58         </api_refs>
     59         <description>
     60 <![CDATA[
     61 This sample demonstrates the use of animation interpolators and path animations for
     62 `Material Design`.
     63 ]]>
     64         </description>
     65         <intro>
     66 <![CDATA[
     67 Material design is a comprehensive guide for visual, motion, and interaction
     68 design across platforms and devices. Starting with API level 21,
     69 [Android includes support for material design][1] apps.
     70 
     71 This sample demonstrates the use of `Material Design` animation interpolators
     72 and path animations. It uses an [ObjectAnimator][2] to animate two view properties,
     73 `Scale_X` and `Scale_Y`. Users can pick from a set of interpolator options. They
     74 can also define the duration of the animation.
     75 
     76 [1]: https://developer.android.com/training/material/index.html
     77 [2]: https://developer.android.com/guide/topics/graphics/prop-animation.html#object-animator
     78 
     79 ]]>
     80         </intro>
     81     </metadata>
     82 
     83 
     84 
     85 </sample>
     86