1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2014 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <!-- 18 The transitions which us used for the entrance and exit of shared elements. Here we declare 19 two different transitions which are targeting to specific views. 20 --> 21 <transitionSet xmlns:android="http://schemas.android.com/apk/res/android"> 22 23 <!-- changeBounds is used for the TextViews which are shared --> 24 <changeBounds> 25 <!-- 26 Set this transitions target IDs to be those which point to the TextViews in both the 27 starting and result Activities 28 --> 29 <targets> 30 <target android:targetId="@id/textview_name" /> 31 <target android:targetId="@id/textview_title" /> 32 </targets> 33 </changeBounds> 34 35 <!-- moveImage is used for the ImageViews which are shared --> 36 <moveImage> 37 <!-- 38 Set this transitions target IDs to be those which point to the ImageViews in both the 39 starting and result Activities 40 --> 41 <targets> 42 <target android:targetId="@id/imageview_header" /> 43 <target android:targetId="@id/imageview_item" /> 44 </targets> 45 </moveImage> 46 47 </transitionSet> 48 49 50