1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 ~ Copyright (C) 2015 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 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/transition_grid_layout" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:clipChildren="true" 22 android:columnCount="2" 23 android:rowCount="4"> 24 <ImageView 25 android:id="@+id/ducky" 26 android:layout_height="wrap_content" 27 android:layout_width="wrap_content" 28 android:scaleType="centerCrop" 29 android:src="@drawable/ducky" 30 android:onClick="clicked" 31 android:transitionName="ducky"/> 32 <ImageView 33 android:id="@+id/woot" 34 android:layout_height="wrap_content" 35 android:layout_width="wrap_content" 36 android:scaleType="centerCrop" 37 android:src="@drawable/woot" 38 android:onClick="clicked" 39 android:transitionName="woot"/> 40 <ImageView 41 android:id="@+id/ball" 42 android:layout_height="wrap_content" 43 android:layout_width="wrap_content" 44 android:scaleType="centerCrop" 45 android:src="@drawable/ball" 46 android:onClick="clicked" 47 android:transitionName="ball"/> 48 <ImageView 49 android:id="@+id/block" 50 android:layout_height="wrap_content" 51 android:layout_width="wrap_content" 52 android:scaleType="centerCrop" 53 android:src="@drawable/block" 54 android:onClick="clicked" 55 android:transitionName="block"/> 56 <ImageView 57 android:id="@+id/jellies" 58 android:layout_height="wrap_content" 59 android:layout_width="wrap_content" 60 android:scaleType="centerCrop" 61 android:src="@drawable/jellies" 62 android:onClick="clicked" 63 android:transitionName="jellies"/> 64 <ImageView 65 android:id="@+id/mug" 66 android:layout_height="wrap_content" 67 android:layout_width="wrap_content" 68 android:scaleType="centerCrop" 69 android:src="@drawable/mug" 70 android:onClick="clicked" 71 android:transitionName="mug"/> 72 <ImageView 73 android:id="@+id/pencil" 74 android:layout_height="wrap_content" 75 android:layout_width="wrap_content" 76 android:scaleType="centerCrop" 77 android:src="@drawable/pencil" 78 android:onClick="clicked" 79 android:transitionName="pencil"/> 80 <ImageView 81 android:id="@+id/scissors" 82 android:layout_height="wrap_content" 83 android:layout_width="wrap_content" 84 android:scaleType="centerCrop" 85 android:src="@drawable/scissors" 86 android:onClick="clicked" 87 android:transitionName="scissors"/> 88 </GridLayout>