• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>ActivitySceneTransitionBasic</name>
22    <group>UI</group>
23    <package>com.example.android.activityscenetransitionbasic</package>
24
25    <minSdk>21</minSdk>
26
27    <dependency>com.squareup.picasso:picasso:2.4.0</dependency>
28
29    <strings>
30        <intro>
31            <![CDATA[
32            Demonstrates how to the use Activity scene transitions when transitions
33            from one Activity to another. Uses a combination of changeImageTransform and
34            changeBounds to nicely transition a grid of images to an Activity with a large image
35            and detail text.
36            ]]>
37        </intro>
38    </strings>
39
40    <attribution>
41        <copyright>Copyright 2013 Square, Inc.</copyright>
42        <license>APACHE2</license>
43    </attribution>
44
45    <template src="base"/>
46    <common src="logger"/>
47
48    <metadata>
49        <status>PUBLISHED</status>
50        <categories>UI</categories>
51        <technologies>Android</technologies>
52        <languages>Java</languages>
53        <solutions>Mobile</solutions>
54        <level>INTERMEDIATE</level>
55        <icon>screenshots/icon-web.png</icon>
56        <screenshots>
57            <img>screenshots/1-main.png</img>
58            <img>screenshots/2-transition.png</img>
59            <img>screenshots/3-transition.png</img>
60            <img>screenshots/4-detail.png</img>
61        </screenshots>
62        <api_refs>
63            <android>android.transition.Transition</android>
64            <android>android.app.ActivityOptions</android>
65        </api_refs>
66        <description>
67This sample shows how to use scene transitions from one Activity to another in Lollipop.
68Uses a combination of changeImageTransform and changeBounds to transition a grid of images
69to an Activity with a large image and detail text.
70        </description>
71        <intro>
72Android Lollipop has introduced the ability to transition between activities by using a shared element.
73This sample demonstrates how to do this using the theme of your application.
74
75See [Defining Custom Animations][1] for all the details on how to do this.
76
77[1]: https://developer.android.com/training/material/animations.html#Transitions
78        </intro>
79    </metadata>
80
81</sample>
82