Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- |
| 2 | Copyright (C) 2017 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 | <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | android:layout_width="match_parent" |
| 18 | android:layout_height="match_parent" |
| 19 | android:contentDescription="@string/wallpaper_thumbnail"> |
| 20 | |
| 21 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 22 | android:id="@+id/tile" |
| 23 | android:layout_width="match_parent" |
| 24 | android:layout_height="match_parent" |
Tianguang Zhang | d3e4f63 | 2021-04-14 00:30:15 +0200 | [diff] [blame] | 25 | android:background="?android:colorSecondary" |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 26 | android:clickable="true" |
| 27 | android:focusable="true" |
| 28 | android:foreground="?attr/selectableItemBackground"> |
| 29 | |
Tianguang Zhang | 6406edb | 2021-03-18 14:42:36 +0100 | [diff] [blame] | 30 | <com.android.wallpaper.picker.individual.CustomShapeImageView |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 31 | android:id="@+id/thumbnail" |
| 32 | android:layout_width="match_parent" |
| 33 | android:layout_height="match_parent" |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 34 | android:scaleType="centerCrop" /> |
| 35 | |
| 36 | <ImageView |
| 37 | android:id="@+id/overlay_icon" |
| 38 | android:layout_width="wrap_content" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:layout_centerInParent="true" /> |
| 41 | |
| 42 | <FrameLayout |
| 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:layout_alignParentBottom="true" |
Tianguang Zhang | d3e4f63 | 2021-04-14 00:30:15 +0200 | [diff] [blame] | 46 | android:background="?android:colorForeground" |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 47 | android:padding="@dimen/rotation_tile_desktop_label_padding"> |
| 48 | |
| 49 | <TextView |
| 50 | android:layout_width="wrap_content" |
| 51 | android:layout_height="wrap_content" |
| 52 | android:text="@string/my_photos_category_title" |
Tianguang Zhang | d3e4f63 | 2021-04-14 00:30:15 +0200 | [diff] [blame] | 53 | android:textColor="?android:attr/textColorPrimary" |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 54 | android:textSize="@dimen/rotation_tile_desktop_label_text_size" /> |
| 55 | |
| 56 | </FrameLayout> |
| 57 | |
| 58 | </RelativeLayout> |
| 59 | |
| 60 | </FrameLayout> |