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    xmlns:app="http://schemas.android.com/apk/res-auto"
18    android:id="@+id/metadata"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:layout_marginBottom="@dimen/single_metadata_pane_bottom_offset"
22    android:layout_marginEnd="@dimen/single_metadata_pane_horizontal_offset"
23    android:layout_marginLeft="@dimen/single_metadata_pane_horizontal_offset"
24    android:layout_marginRight="@dimen/single_metadata_pane_horizontal_offset"
25    android:layout_marginStart="@dimen/single_metadata_pane_horizontal_offset"
26    android:layout_marginTop="@dimen/single_metadata_pane_vertical_offset">
27
28    <androidx.cardview.widget.CardView
29        android:layout_width="match_parent"
30        android:layout_height="@dimen/single_metadata_card_layout_height"
31        app:cardCornerRadius="?android:dialogCornerRadius"
32        app:cardElevation="@dimen/single_metadata_card_elevation"
33        app:cardMaxElevation="@dimen/single_metadata_card_elevation"
34        app:cardPreventCornerOverlap="false"
35        app:cardUseCompatPadding="true"
36        app:contentPadding="0dp">
37
38        <LinearLayout
39            android:layout_width="match_parent"
40            android:layout_height="match_parent"
41            android:orientation="horizontal">
42
43            <FrameLayout
44                android:layout_width="wrap_content"
45                android:layout_height="match_parent">
46                <com.android.wallpaper.widget.WallpaperThumbnailView
47                    android:id="@+id/wallpaper_image"
48                    android:layout_width="@dimen/single_metadata_pane_thumb_width"
49                    android:layout_height="match_parent"
50                    android:clickable="true"
51                    android:contentDescription="@string/currently_set_wallpaper_thumbnail"
52                    android:focusable="true"
53                    android:foreground="?attr/selectableItemBackground" />
54                <ImageButton
55                    style="?attr/borderlessButtonStyle"
56                    android:id="@+id/wallpaper_explore_button_notext"
57                    android:layout_width="wrap_content"
58                    android:layout_height="wrap_content"
59                    android:layout_margin="@dimen/single_metadata_explore_button_margin"
60                    android:layout_gravity="top|end"
61                    android:background="@drawable/button_over_thumbnail_background"
62                    android:clickable="true"
63                    android:contentDescription="@string/explore"
64                    android:focusable="true"
65                    android:padding="@dimen/single_metadata_explore_section_button_padding"
66                    android:src="@drawable/ic_explore_24px"
67                    android:visibility="gone" />
68            </FrameLayout>
69
70            <RelativeLayout
71                android:layout_width="match_parent"
72                android:layout_height="match_parent"
73                android:layout_marginEnd="@dimen/single_metadata_pane_attributions_margin_right"
74                android:layout_marginStart="@dimen/single_metadata_pane_attributions_margin_left"
75                android:focusable="true">
76
77                <TextView
78                    android:id="@+id/wallpaper_presentation_mode"
79                    android:layout_width="match_parent"
80                    android:layout_height="wrap_content"
81                    android:layout_alignParentTop="true"
82                    android:layout_alignParentStart="true"
83                    android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_label_margin_top"
84                    android:textColor="@color/currently_set_presentation_mode_text_color"
85                    android:textSize="@dimen/abc_text_size_subhead_material"
86                    android:textAppearance="@style/HeaderTextAppearance"
87                    android:textStyle="bold"
88                    android:textAlignment="viewStart"
89                    android:ellipsize="end"
90                    android:text="@string/wallpaper_destination_both"/>
91                <TextView
92                    android:id="@+id/wallpaper_presentation_mode_subtitle"
93                    android:layout_width="match_parent"
94                    android:layout_height="wrap_content"
95                    android:layout_alignParentStart="true"
96                    android:layout_below="@+id/wallpaper_presentation_mode"
97                    android:textColor="@color/currently_set_presentation_mode_text_color"
98                    android:textAlignment="viewStart"
99                    android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Subtitle"
100                    android:textStyle="italic" />
101                <ImageButton
102                    style="?attr/borderlessButtonStyle"
103                    android:id="@+id/skip_wallpaper_button"
104                    android:layout_width="wrap_content"
105                    android:layout_height="wrap_content"
106                    android:layout_alignParentTop="true"
107                    android:layout_alignParentEnd="true"
108                    android:layout_marginEnd="0dp"
109                    android:layout_marginStart="@dimen/single_metadata_skip_button_margin"
110                    android:layout_marginVertical="@dimen/single_metadata_skip_button_margin"
111                    android:background="@android:color/transparent"
112                    android:clickable="true"
113                    android:contentDescription="@string/refresh_daily_wallpaper_content_description"
114                    android:focusable="true"
115                    android:padding="@dimen/single_metadata_explore_section_button_padding"
116                    android:src="@drawable/ic_refresh_24px"
117                    android:tint="@color/currently_set_presentation_mode_text_color"
118                    android:visibility="gone" />
119
120                <TextView
121                    android:id="@+id/wallpaper_title"
122                    android:layout_width="match_parent"
123                    android:layout_height="wrap_content"
124                    android:layout_alignParentStart="true"
125                    android:layout_above="@+id/wallpaper_subtitle"
126                    android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_title_margin_top"
127                    android:ellipsize="end"
128                    android:maxLines="2"
129                    android:textAlignment="viewStart"
130                    android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView" />
131
132                <TextView
133                    android:id="@+id/wallpaper_subtitle"
134                    android:layout_width="match_parent"
135                    android:layout_height="wrap_content"
136                    android:layout_alignParentStart="true"
137                    android:layout_above="@+id/wallpaper_subtitle2"
138                    android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_subtitle_margin_top"
139                    android:ellipsize="end"
140                    android:maxLines="1"
141                    android:textAlignment="viewStart"
142                    android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small"
143                    android:textColor="@color/currently_set_subtitle_text_color"
144                    android:textSize="@dimen/single_metadata_pane_wallpaper_subtitle_text_size" />
145
146                <TextView
147                    android:id="@+id/wallpaper_subtitle2"
148                    android:layout_width="match_parent"
149                    android:layout_height="wrap_content"
150                    android:layout_alignParentBottom="true"
151                    android:layout_alignParentStart="true"
152                    android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_subtitle_margin_top"
153                    android:layout_marginBottom="@dimen/single_metadata_pane_wallpaper_subtitle_margin_bottom"
154                    android:ellipsize="end"
155                    android:maxLines="1"
156                    android:textAlignment="viewStart"
157                    android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small"
158                    android:textColor="@color/currently_set_subtitle_text_color"
159                    android:textSize="@dimen/single_metadata_pane_wallpaper_subtitle_text_size" />
160
161
162            </RelativeLayout>
163
164        </LinearLayout>
165
166    </androidx.cardview.widget.CardView>
167
168</FrameLayout>
169