Gurpreet Singh | 7138788 | 2023-01-09 19:07:43 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
| 4 | * Copyright 2019, The Android Open Source Project |
| 5 | * |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
| 17 | */ |
| 18 | --> |
| 19 | <!-- Layout Option: Supporting up to 3 images for preview --> |
| 20 | <LinearLayout |
| 21 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="wrap_content" |
| 24 | android:orientation="vertical" |
| 25 | android:background="?attr/colorBackground"> |
| 26 | <RelativeLayout |
| 27 | android:id="@+id/content_preview_image_area" |
| 28 | android:layout_width="wrap_content" |
| 29 | android:layout_height="wrap_content" |
| 30 | android:layout_gravity="center_horizontal" |
| 31 | android:paddingBottom="@dimen/chooser_view_spacing" |
| 32 | android:background="?attr/colorBackground"> |
| 33 | |
| 34 | <view class="com.android.internal.app.ChooserActivity$RoundedRectImageView" |
| 35 | android:id="@+id/content_preview_image_1_large" |
| 36 | android:layout_width="120dp" |
| 37 | android:layout_height="104dp" |
| 38 | android:layout_alignParentTop="true" |
| 39 | android:adjustViewBounds="true" |
| 40 | android:gravity="center" |
| 41 | android:scaleType="centerCrop"/> |
| 42 | |
| 43 | <view class="com.android.internal.app.ChooserActivity$RoundedRectImageView" |
| 44 | android:id="@+id/content_preview_image_2_large" |
| 45 | android:visibility="gone" |
| 46 | android:layout_width="120dp" |
| 47 | android:layout_height="104dp" |
| 48 | android:layout_alignParentTop="true" |
| 49 | android:layout_toRightOf="@id/content_preview_image_1_large" |
| 50 | android:layout_marginLeft="10dp" |
| 51 | android:adjustViewBounds="true" |
| 52 | android:gravity="center" |
| 53 | android:scaleType="centerCrop"/> |
| 54 | |
| 55 | <view class="com.android.internal.app.ChooserActivity$RoundedRectImageView" |
| 56 | android:id="@+id/content_preview_image_2_small" |
| 57 | android:visibility="gone" |
| 58 | android:layout_width="120dp" |
| 59 | android:layout_height="65dp" |
| 60 | android:layout_alignParentTop="true" |
| 61 | android:layout_toRightOf="@id/content_preview_image_1_large" |
| 62 | android:layout_marginLeft="10dp" |
| 63 | android:adjustViewBounds="true" |
| 64 | android:gravity="center" |
| 65 | android:scaleType="centerCrop"/> |
| 66 | |
| 67 | <view class="com.android.internal.app.ChooserActivity$RoundedRectImageView" |
| 68 | android:id="@+id/content_preview_image_3_small" |
| 69 | android:visibility="gone" |
| 70 | android:layout_width="120dp" |
| 71 | android:layout_height="65dp" |
| 72 | android:layout_below="@id/content_preview_image_2_small" |
| 73 | android:layout_toRightOf="@id/content_preview_image_1_large" |
| 74 | android:layout_marginLeft="10dp" |
| 75 | android:layout_marginTop="10dp" |
| 76 | android:adjustViewBounds="true" |
| 77 | android:gravity="center" |
| 78 | android:scaleType="centerCrop"/> |
| 79 | |
| 80 | </RelativeLayout> |
| 81 | |
| 82 | <include |
| 83 | android:id="@+id/chooser_action_row" |
| 84 | layout="@layout/chooser_action_row" |
| 85 | android:layout_width="@dimen/chooser_preview_width" |
| 86 | android:layout_height="wrap_content" |
| 87 | android:layout_marginBottom="@dimen/chooser_view_spacing" |
| 88 | android:layout_gravity="center" |
| 89 | /> |
| 90 | |
| 91 | </LinearLayout> |
| 92 | |