blob: e88b21efa123e1a32d97245ce627417ec1a3cd78 [file] [log] [blame]
Jon Miranda16ea1b12017-12-12 14:52:48 -08001<?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
Kunhung Lifd11c6b2021-04-21 16:13:21 +080021 <RelativeLayout
Jon Miranda16ea1b12017-12-12 14:52:48 -080022 android:id="@+id/tile"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent"
Tianguang Zhangd3e4f632021-04-14 00:30:15 +020025 android:background="?android:colorSecondary"
Jon Miranda16ea1b12017-12-12 14:52:48 -080026 android:clickable="true"
27 android:focusable="true"
28 android:foreground="?attr/selectableItemBackground">
29
Chuck Liao369e0822021-07-01 00:09:22 +080030 <ImageView
Jon Miranda16ea1b12017-12-12 14:52:48 -080031 android:id="@+id/thumbnail"
32 android:layout_width="match_parent"
33 android:layout_height="match_parent"
Jon Miranda16ea1b12017-12-12 14:52:48 -080034 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 Zhangd3e4f632021-04-14 00:30:15 +020046 android:background="?android:colorForeground"
Jon Miranda16ea1b12017-12-12 14:52:48 -080047 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 Zhangd3e4f632021-04-14 00:30:15 +020053 android:textColor="?android:attr/textColorPrimary"
Jon Miranda16ea1b12017-12-12 14:52:48 -080054 android:textSize="@dimen/rotation_tile_desktop_label_text_size" />
55
56 </FrameLayout>
57
58 </RelativeLayout>
59
60</FrameLayout>