1<!-- 2 ~ Copyright (C) 2022 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<merge 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content" 22 android:layout_gravity="center_horizontal" 23 android:paddingBottom="@dimen/chooser_view_spacing" 24 android:background="?android:attr/colorBackground"> 25 26 <com.android.intentresolver.widget.RoundedRectImageView 27 android:id="@androidprv:id/content_preview_image_1_large" 28 android:transitionName="screenshot_preview_image" 29 android:layout_width="@dimen/chooser_preview_image_width" 30 android:layout_height="@dimen/chooser_preview_image_height" 31 android:layout_alignParentTop="true" 32 android:adjustViewBounds="true" 33 android:gravity="center" 34 android:scaleType="centerCrop"/> 35 36 <com.android.intentresolver.widget.RoundedRectImageView 37 android:id="@androidprv:id/content_preview_image_2_large" 38 android:visibility="gone" 39 android:layout_width="@dimen/chooser_preview_image_width" 40 android:layout_height="@dimen/chooser_preview_image_height" 41 android:layout_alignParentTop="true" 42 android:layout_toRightOf="@androidprv:id/content_preview_image_1_large" 43 android:layout_marginLeft="10dp" 44 android:adjustViewBounds="true" 45 android:gravity="center" 46 android:scaleType="centerCrop"/> 47 48 <com.android.intentresolver.widget.RoundedRectImageView 49 android:id="@androidprv:id/content_preview_image_2_small" 50 android:visibility="gone" 51 android:layout_width="@dimen/chooser_preview_image_width" 52 android:layout_height="65dp" 53 android:layout_alignParentTop="true" 54 android:layout_toRightOf="@androidprv:id/content_preview_image_1_large" 55 android:layout_marginLeft="10dp" 56 android:adjustViewBounds="true" 57 android:gravity="center" 58 android:scaleType="centerCrop"/> 59 60 <com.android.intentresolver.widget.RoundedRectImageView 61 android:id="@androidprv:id/content_preview_image_3_small" 62 android:visibility="gone" 63 android:layout_width="@dimen/chooser_preview_image_width" 64 android:layout_height="65dp" 65 android:layout_below="@androidprv:id/content_preview_image_2_small" 66 android:layout_toRightOf="@androidprv:id/content_preview_image_1_large" 67 android:layout_marginLeft="10dp" 68 android:layout_marginTop="10dp" 69 android:adjustViewBounds="true" 70 android:gravity="center" 71 android:scaleType="centerCrop"/> 72 73</merge> 74