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 <sample> 18 <name>BasicTransition</name> 19 <group>UI</group> 20 <package>com.example.android.basictransition</package> 21 22 <!-- change minSdk if needed--> 23 <minSdk>19</minSdk> 24 25 <strings> 26 <intro> 27 <![CDATA[ 28 This sample demonstrates the basic use of the transition framework introduced in KitKat. 29 Select each of the RadioButtons to switch between the Scenes. 30 ]]> 31 </intro> 32 </strings> 33 34 <template src="base"/> 35 <template src="FragmentView"/> 36 <common src="logger"/> 37 <common src="activities"/> 38 <common src="view"/> 39 40 <metadata> 41 <status>PUBLISHED</status> 42 <categories>Transition, UI</categories> 43 <technologies>Android</technologies> 44 <languages>Java</languages> 45 <solutions>Mobile</solutions> 46 <level>ADVANCED</level> 47 <icon>Application/src/main/big_icon.png</icon> 48 <screenshots> 49 <img>screenshots/main.png</img> 50 </screenshots> 51 <api_refs> 52 <android>android.transition.TransitionManager</android> 53 <android>android.transition.Transition</android> 54 <android>android.transition.Scene</android> 55 </api_refs> 56 57 <description> 58 <![CDATA[ 59 A basic app showing how to use the Transition framework introduced in 60 KitKat. The app shows radioboxes to select between different Scenes, 61 and uses various ways to transition between them. 62 ]]> 63 </description> 64 65 <intro> 66 <![CDATA[ 67 A Scene is an encapsulation of the state of a view hierarchy, 68 including the views in that hierarchy and the various values 69 (layout-related and otherwise) that those views have. A scene can be 70 defined by a layout hierarchy directly or by code which sets up the 71 scene dynamically as it is entered. 72 73 A Transition is a mechanism to automatically animate changes that 74 occur when a new scene is entered. Some transition capabilities are 75 automatic. That is, entering a scene may cause animations to run which 76 fade out views that go away, changeBounds and resize existing views 77 that change, and fade in views that become visible. There are 78 additional transitions that can animate other attributes, such as 79 color changes, and which can optionally be specified to take place 80 during particular scene changes. Finally, developers can define their 81 own Transition subclasses which monitor particular property changes 82 and which run custom animations when those properties change values. 83 84 TransitionManager is used to specify custom transitions for particular 85 scene changes, and to cause scene changes with specific transitions to 86 take place. 87 ]]> 88 </intro> 89 </metadata> 90 91 </sample> 92