blob: 2a4d4d12b3d1fc31ff659381372ee64251ec97c2 [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
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:id="@+id/metadata"
19 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
21 android:orientation="horizontal">
22
23 <LinearLayout
24 android:layout_width="0dp"
25 android:layout_height="wrap_content"
26 android:layout_marginEnd="2dp"
27 android:layout_marginRight="2dp"
28 android:layout_weight="1"
29 android:background="@color/secondary_color"
30 android:orientation="vertical">
31
32 <!-- Wraps the image and the "home screen" label overlapping it. -->
33 <FrameLayout
34 android:id="@+id/home_wallpaper_section"
35 android:layout_width="wrap_content"
36 android:layout_height="wrap_content">
37
38 <com.android.wallpaper.widget.WallpaperThumbnailView
39 android:id="@+id/home_wallpaper_image"
40 android:layout_width="match_parent"
41 android:layout_height="@dimen/both_metadata_thumb_height"
42 android:layout_gravity="top"
43 android:clickable="true"
44 android:contentDescription="@string/currently_set_home_wallpaper_thumbnail"
45 android:focusable="true"
46 android:foreground="?attr/selectableItemBackground"
47 android:nextFocusForward="@+id/home_wallpaper_attribution_section" />
48
49 <LinearLayout
50 android:id="@+id/home_wallpaper_top_section"
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:background="@color/currently_set_both_header_scrim"
54 android:focusable="true"
55 android:nextFocusForward="@+id/home_wallpaper_explore_button_legacy"
56 android:orientation="horizontal"
57 android:visibility="invisible">
58
59 <LinearLayout
60 android:layout_width="0dp"
61 android:layout_height="wrap_content"
62 android:layout_weight="1"
63 android:orientation="vertical">
64
65 <TextView
66 android:id="@+id/home_wallpaper_label"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:layout_marginEnd="@dimen/both_metadata_content_side_margin"
70 android:layout_marginLeft="@dimen/both_metadata_content_side_margin"
71 android:layout_marginRight="@dimen/both_metadata_content_side_margin"
72 android:layout_marginStart="@dimen/both_metadata_content_side_margin"
73 android:layout_marginTop="@dimen/both_metadata_scrim_content_top_margin"
74 android:text="@string/home_screen_message"
75 android:textColor="@color/currently_set_both_title_text_color"
76 android:textSize="@dimen/abc_text_size_subhead_material"
77 android:textStyle="bold" />
78
79 <TextView
80 android:id="@+id/home_wallpaper_presentation_mode"
81 android:layout_width="wrap_content"
82 android:layout_height="wrap_content"
83 android:layout_marginBottom="@dimen/both_metadata_scrim_content_bottom_margin"
84 android:layout_marginEnd="@dimen/both_metadata_content_side_margin"
85 android:layout_marginLeft="@dimen/both_metadata_content_side_margin"
86 android:layout_marginRight="@dimen/both_metadata_content_side_margin"
87 android:layout_marginStart="@dimen/both_metadata_content_side_margin"
88 android:textColor="@color/currently_set_both_presentation_mode_text_color"
89 android:textSize="@dimen/abc_text_size_body_2_material" />
90
91 </LinearLayout>
92
93 <ImageButton
94 android:id="@+id/home_wallpaper_explore_button_legacy"
95 style="?attr/borderlessButtonStyle"
96 android:layout_width="@dimen/both_metadata_explore_button_size"
97 android:layout_height="@dimen/both_metadata_explore_button_size"
98 android:layout_gravity="center_vertical|end"
99 android:clickable="true"
100 android:contentDescription="@string/explore_home_screen"
101 android:focusable="true"
102 android:nextFocusForward="@id/home_wallpaper_image"
Santiago Etchebehered24506c2018-04-05 17:02:42 -0700103 android:src="@drawable/ic_explore_24px"
Jon Miranda16ea1b12017-12-12 14:52:48 -0800104 android:visibility="gone" />
105
106 <ImageButton
107 android:id="@+id/skip_home_wallpaper"
108 style="?attr/borderlessButtonStyle"
109 android:layout_width="@dimen/both_metadata_explore_button_size"
110 android:layout_height="@dimen/both_metadata_explore_button_size"
111 android:layout_gravity="center_vertical|end"
112 android:clickable="true"
113 android:contentDescription="@string/refresh_daily_wallpaper_home_content_description"
114 android:focusable="true"
115 android:nextFocusForward="@id/home_wallpaper_image"
Santiago Etchebehered24506c2018-04-05 17:02:42 -0700116 android:src="@drawable/ic_refresh_24px"
Jon Miranda16ea1b12017-12-12 14:52:48 -0800117 android:visibility="gone" />
118
119 </LinearLayout>
120
121 </FrameLayout>
122
123 <!-- Wraps the attribution section. -->
124 <FrameLayout
125 android:id="@id/home_wallpaper_attribution_section"
126 android:layout_width="match_parent"
127 android:layout_height="@dimen/both_metadata_attribution_section_height"
128 android:focusable="true"
129 android:nextFocusForward="@+id/lock_wallpaper_top_section">
130
131 <LinearLayout
132 android:layout_width="match_parent"
133 android:layout_height="wrap_content"
134 android:layout_gravity="top"
135 android:orientation="horizontal">
136
137 <TextView
138 android:id="@+id/home_wallpaper_title"
139 android:layout_width="0dp"
140 android:layout_height="wrap_content"
141 android:layout_marginEnd="@dimen/both_metadata_content_side_margin"
142 android:layout_marginLeft="@dimen/both_metadata_content_side_margin"
143 android:layout_marginRight="@dimen/both_metadata_content_side_margin"
144 android:layout_marginStart="@dimen/both_metadata_content_side_margin"
145 android:layout_marginTop="@dimen/both_metadata_attribution_section_top_margin"
146 android:layout_weight="1"
147 android:ellipsize="end"
148 android:maxLines="2"
149 android:textColor="@color/currently_set_both_title_text_color"
150 android:textSize="@dimen/both_metadata_title_text_size"
151 android:textStyle="bold" />
152
153 <ImageButton
154 android:id="@+id/home_wallpaper_explore_button"
155 style="?attr/borderlessButtonStyle"
156 android:layout_width="@dimen/both_metadata_explore_button_size"
157 android:layout_height="@dimen/both_metadata_explore_button_size"
158 android:clickable="true"
159 android:contentDescription="@string/explore_home_screen"
160 android:focusable="true"
161 android:nextFocusForward="@id/home_wallpaper_image"
Santiago Etchebehered24506c2018-04-05 17:02:42 -0700162 android:src="@drawable/ic_explore_24px"
Jon Miranda16ea1b12017-12-12 14:52:48 -0800163 android:visibility="gone" />
164
165 </LinearLayout>
166
167 <LinearLayout
168 android:layout_width="match_parent"
169 android:layout_height="wrap_content"
170 android:layout_gravity="bottom"
171 android:layout_marginBottom="@dimen/both_metadata_attribution_section_bottom_margin"
172 android:layout_marginEnd="@dimen/both_metadata_content_side_margin"
173 android:layout_marginLeft="@dimen/both_metadata_content_side_margin"
174 android:layout_marginRight="@dimen/both_metadata_content_side_margin"
175 android:layout_marginStart="@dimen/both_metadata_content_side_margin"
176 android:orientation="vertical">
177
178 <TextView
179 android:id="@+id/home_wallpaper_subtitle1"
180 android:layout_width="wrap_content"
181 android:layout_height="wrap_content"
182 android:ellipsize="end"
183 android:maxLines="1"
184 android:textColor="@color/currently_set_both_attribution_subtitle_text_color"
185 android:textSize="@dimen/abc_text_size_caption_material" />
186
187 <TextView
188 android:id="@+id/home_wallpaper_subtitle2"
189 android:layout_width="wrap_content"
190 android:layout_height="wrap_content"
191 android:ellipsize="end"
192 android:maxLines="1"
193 android:textColor="@color/currently_set_both_attribution_subtitle_text_color"
194 android:textSize="@dimen/abc_text_size_caption_material" />
195
196 </LinearLayout>
197
198 </FrameLayout>
199
200 </LinearLayout>
201
202 <LinearLayout
203 android:layout_width="0dp"
204 android:layout_height="wrap_content"
205 android:layout_marginLeft="2dp"
206 android:layout_weight="1"
207 android:background="@color/secondary_color"
208 android:orientation="vertical">
209
210 <!-- Wraps the image and the "lock screen" label overlapping it. -->
211 <FrameLayout
212 android:id="@+id/lock_wallpaper_section"
213 android:layout_width="wrap_content"
214 android:layout_height="wrap_content">
215
216 <com.android.wallpaper.widget.WallpaperThumbnailView
217 android:id="@+id/lock_wallpaper_image"
218 android:layout_width="match_parent"
219 android:layout_height="@dimen/both_metadata_thumb_height"
220 android:layout_gravity="top"
221 android:clickable="true"
222 android:contentDescription="@string/currently_set_lock_wallpaper_thumbnail"
223 android:focusable="true"
224 android:foreground="?attr/selectableItemBackground"
225 android:nextFocusForward="@+id/lock_wallpaper_attribution_section" />
226
227 <LinearLayout
228 android:id="@id/lock_wallpaper_top_section"
229 android:layout_width="match_parent"
230 android:layout_height="wrap_content"
231 android:background="@color/currently_set_both_header_scrim"
232 android:focusable="true"
233 android:nextFocusForward="@+id/lock_wallpaper_explore_button_legacy"
234 android:orientation="horizontal"
235 android:visibility="invisible">
236
237 <LinearLayout
238 android:layout_width="0dp"
239 android:layout_height="wrap_content"
240 android:layout_weight="1"
241 android:orientation="vertical">
242
243 <TextView
244 android:id="@+id/lock_wallpaper_label"
245 android:layout_width="wrap_content"
246 android:layout_height="wrap_content"
247 android:layout_gravity="start|top"
248 android:layout_marginEnd="@dimen/both_metadata_content_side_margin"
249 android:layout_marginLeft="@dimen/both_metadata_content_side_margin"
250 android:layout_marginRight="@dimen/both_metadata_content_side_margin"
251 android:layout_marginStart="@dimen/both_metadata_content_side_margin"
252 android:layout_marginTop="@dimen/both_metadata_scrim_content_top_margin"
253 android:text="@string/lock_screen_message"
254 android:textColor="@color/currently_set_both_title_text_color"
255 android:textSize="@dimen/abc_text_size_subhead_material"
256 android:textStyle="bold" />
257
258 <TextView
259 android:id="@+id/lock_wallpaper_presentation_mode"
260 android:layout_width="wrap_content"
261 android:layout_height="wrap_content"
262 android:layout_gravity="start|bottom"
263 android:layout_marginBottom="@dimen/both_metadata_scrim_content_bottom_margin"
264 android:layout_marginEnd="@dimen/both_metadata_content_side_margin"
265 android:layout_marginLeft="@dimen/both_metadata_content_side_margin"
266 android:layout_marginRight="@dimen/both_metadata_content_side_margin"
267 android:layout_marginStart="@dimen/both_metadata_content_side_margin"
268 android:textColor="@color/currently_set_both_presentation_mode_text_color"
269 android:textSize="@dimen/abc_text_size_body_2_material" />
270
271 </LinearLayout>
272
273 <ImageButton
274 android:id="@+id/lock_wallpaper_explore_button_legacy"
275 style="?attr/borderlessButtonStyle"
276 android:layout_width="@dimen/both_metadata_explore_button_size"
277 android:layout_height="@dimen/both_metadata_explore_button_size"
278 android:layout_gravity="center_vertical|end"
279 android:clickable="true"
280 android:contentDescription="@string/explore_lock_screen"
281 android:focusable="true"
282 android:nextFocusForward="@id/lock_wallpaper_image"
Santiago Etchebehered24506c2018-04-05 17:02:42 -0700283 android:src="@drawable/ic_explore_24px"
Jon Miranda16ea1b12017-12-12 14:52:48 -0800284 android:visibility="gone" />
285
286 </LinearLayout>
287
288 </FrameLayout>
289
290 <!-- Wraps the attribution section. -->
291 <FrameLayout
292 android:id="@id/lock_wallpaper_attribution_section"
293 android:layout_width="match_parent"
294 android:layout_height="@dimen/both_metadata_attribution_section_height"
295 android:focusable="true">
296
297 <LinearLayout
298 android:layout_width="match_parent"
299 android:layout_height="wrap_content"
300 android:layout_gravity="top"
301 android:orientation="horizontal">
302
303 <TextView
304 android:id="@+id/lock_wallpaper_title"
305 android:layout_width="0dp"
306 android:layout_height="wrap_content"
307 android:layout_marginEnd="@dimen/both_metadata_content_side_margin"
308 android:layout_marginLeft="@dimen/both_metadata_content_side_margin"
309 android:layout_marginRight="@dimen/both_metadata_content_side_margin"
310 android:layout_marginStart="@dimen/both_metadata_content_side_margin"
311 android:layout_marginTop="@dimen/both_metadata_attribution_section_top_margin"
312 android:layout_weight="1"
313 android:ellipsize="end"
314 android:maxLines="2"
315 android:textColor="@color/currently_set_both_attribution_title_text_color"
316 android:textSize="@dimen/both_metadata_title_text_size"
317 android:textStyle="bold" />
318
319 <ImageButton
320 android:id="@+id/lock_wallpaper_explore_button"
321 style="?attr/borderlessButtonStyle"
322 android:layout_width="@dimen/both_metadata_explore_button_size"
323 android:layout_height="@dimen/both_metadata_explore_button_size"
324 android:clickable="true"
325 android:contentDescription="@string/explore_lock_screen"
326 android:focusable="true"
327 android:nextFocusForward="@+id/lock_wallpaper_image"
Santiago Etchebehered24506c2018-04-05 17:02:42 -0700328 android:src="@drawable/ic_explore_24px"
Jon Miranda16ea1b12017-12-12 14:52:48 -0800329 android:visibility="gone" />
330
331 </LinearLayout>
332
333 <LinearLayout
334 android:layout_width="match_parent"
335 android:layout_height="wrap_content"
336 android:layout_gravity="bottom"
337 android:layout_marginBottom="@dimen/both_metadata_attribution_section_bottom_margin"
338 android:layout_marginEnd="@dimen/both_metadata_content_side_margin"
339 android:layout_marginLeft="@dimen/both_metadata_content_side_margin"
340 android:layout_marginRight="@dimen/both_metadata_content_side_margin"
341 android:layout_marginStart="@dimen/both_metadata_content_side_margin"
342 android:orientation="vertical">
343
344 <TextView
345 android:id="@+id/lock_wallpaper_subtitle1"
346 android:layout_width="wrap_content"
347 android:layout_height="wrap_content"
348 android:ellipsize="end"
349 android:maxLines="1"
350 android:textColor="@color/currently_set_both_attribution_subtitle_text_color"
351 android:textSize="@dimen/abc_text_size_caption_material" />
352
353 <TextView
354 android:id="@+id/lock_wallpaper_subtitle2"
355 android:layout_width="wrap_content"
356 android:layout_height="wrap_content"
357 android:ellipsize="end"
358 android:maxLines="1"
359 android:textColor="@color/currently_set_both_attribution_subtitle_text_color"
360 android:textSize="@dimen/abc_text_size_caption_material" />
361
362 </LinearLayout>
363
364 </FrameLayout>
365
366 </LinearLayout>
367
368</LinearLayout>