blob: 90ad859580981abd61f0a941c0d003adfc43e9df [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<LinearLayout 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 android:orientation="vertical">
28
29 <android.support.v7.widget.CardView
30 android:layout_width="match_parent"
31 android:layout_height="@dimen/single_metadata_card_layout_height"
32 app:cardCornerRadius="@dimen/single_metadata_card_corner_radius"
33 app:cardElevation="@dimen/single_metadata_card_elevation"
34 app:cardMaxElevation="@dimen/single_metadata_card_elevation"
35 app:cardPreventCornerOverlap="false"
36 app:cardUseCompatPadding="true"
37 app:contentPadding="0dp">
38
39 <View
40 android:layout_width="match_parent"
41 android:layout_height="match_parent"
42 android:background="@color/secondary_color" />
43
44 <LinearLayout
45 android:layout_width="match_parent"
46 android:layout_height="match_parent"
47 android:orientation="horizontal">
48
49 <com.android.wallpaper.widget.WallpaperThumbnailView
50 android:id="@+id/wallpaper_image"
51 android:layout_width="@dimen/single_metadata_pane_thumb_width"
52 android:layout_height="match_parent"
53 android:clickable="true"
54 android:contentDescription="@string/currently_set_wallpaper_thumbnail"
55 android:focusable="true"
56 android:foreground="?attr/selectableItemBackground" />
57
Santiago Etchebehere17b1b252018-05-08 13:34:11 -070058 <RelativeLayout
Jon Miranda16ea1b12017-12-12 14:52:48 -080059 android:layout_width="match_parent"
60 android:layout_height="match_parent">
61
62 <LinearLayout
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
Santiago Etchebehere17b1b252018-05-08 13:34:11 -070065 android:layout_alignParentTop="true"
66 android:layout_above="@+id/wallpaper_explore_section"
Jon Miranda16ea1b12017-12-12 14:52:48 -080067 android:layout_marginEnd="@dimen/single_metadata_pane_attributions_margin_right"
68 android:layout_marginLeft="@dimen/single_metadata_pane_attributions_margin_left"
69 android:layout_marginRight="@dimen/single_metadata_pane_attributions_margin_right"
70 android:layout_marginStart="@dimen/single_metadata_pane_attributions_margin_left"
71 android:focusable="true"
72 android:orientation="vertical">
73
74 <TextView
75 android:id="@+id/wallpaper_presentation_mode"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
78 android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_label_margin_top"
79 android:textColor="@color/currently_set_presentation_mode_text_color"
80 android:textSize="@dimen/abc_text_size_body_2_material"
81 android:textStyle="bold" />
82
83 <TextView
84 android:id="@+id/wallpaper_title"
85 android:layout_width="match_parent"
86 android:layout_height="wrap_content"
87 android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_title_margin_top"
88 android:ellipsize="end"
89 android:maxLines="2"
90 android:textColor="@color/currently_set_title_text_color"
91 android:textSize="@dimen/single_metadata_pane_wallpaper_title_text_size" />
92
93 <TextView
94 android:id="@+id/wallpaper_subtitle"
95 android:layout_width="match_parent"
96 android:layout_height="wrap_content"
97 android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_subtitle_margin_top"
98 android:ellipsize="end"
99 android:maxLines="2"
100 android:textColor="@color/currently_set_subtitle_text_color"
101 android:textSize="@dimen/single_metadata_pane_wallpaper_subtitle_text_size" />
102
103 </LinearLayout>
104
105 <LinearLayout
106 android:id="@+id/wallpaper_explore_section"
107 android:layout_width="match_parent"
108 android:layout_height="wrap_content"
Santiago Etchebehere17b1b252018-05-08 13:34:11 -0700109 android:layout_alignParentBottom="true"
Jon Miranda16ea1b12017-12-12 14:52:48 -0800110 android:orientation="vertical"
111 android:visibility="gone">
112
113 <View
114 android:layout_width="match_parent"
115 android:layout_height="1dp"
116 android:background="@color/currently_set_divider_background_color" />
117
118 <LinearLayout
119 android:layout_width="match_parent"
120 android:layout_height="@dimen/single_metadata_explore_section_height"
121 android:orientation="horizontal">
122
123 <ImageButton
124 android:id="@+id/skip_wallpaper_button"
125 style="?attr/borderlessButtonStyle"
126 android:layout_width="@dimen/single_metadata_explore_section_height"
127 android:layout_height="match_parent"
128 android:layout_marginEnd="@dimen/single_metadata_skip_button_margin_end"
129 android:layout_marginLeft="@dimen/single_metadata_skip_button_margin_start"
130 android:layout_marginRight="@dimen/single_metadata_skip_button_margin_end"
131 android:layout_marginStart="@dimen/single_metadata_skip_button_margin_start"
132 android:clickable="true"
133 android:contentDescription="@string/refresh_daily_wallpaper_content_description"
134 android:focusable="true"
135 android:padding="@dimen/single_metadata_explore_section_button_padding"
Santiago Etchebehered24506c2018-04-05 17:02:42 -0700136 android:src="@drawable/ic_refresh_24px"
Jon Miranda16ea1b12017-12-12 14:52:48 -0800137 android:visibility="gone" />
138
139 <ImageButton
140 android:id="@+id/wallpaper_explore_button_notext"
141 style="?attr/borderlessButtonStyle"
142 android:layout_width="@dimen/single_metadata_explore_section_height"
143 android:layout_height="match_parent"
144 android:layout_marginLeft="@dimen/single_metadata_explore_button_margin_left"
145 android:layout_marginStart="@dimen/single_metadata_explore_button_margin_left"
146 android:clickable="true"
147 android:contentDescription="@string/explore"
148 android:focusable="true"
149 android:padding="@dimen/single_metadata_explore_section_button_padding"
Santiago Etchebehered24506c2018-04-05 17:02:42 -0700150 android:src="@drawable/ic_explore_24px"
Jon Miranda16ea1b12017-12-12 14:52:48 -0800151 android:visibility="gone" />
152
153 <Button
154 android:id="@+id/wallpaper_explore_button"
155 style="?attr/borderlessButtonStyle"
156 android:layout_width="wrap_content"
157 android:layout_height="wrap_content"
158 android:layout_marginLeft="@dimen/single_metadata_explore_button_margin_left"
159 android:layout_marginStart="@dimen/single_metadata_explore_button_margin_left"
160 android:clickable="true"
161 android:contentDescription="@string/explore"
162 android:drawablePadding="@dimen/explore_button_drawable_padding"
Santiago Etchebehere17b1b252018-05-08 13:34:11 -0700163 android:ellipsize="end"
Jon Miranda16ea1b12017-12-12 14:52:48 -0800164 android:focusable="true"
Santiago Etchebehere17b1b252018-05-08 13:34:11 -0700165 android:maxLines="1"
Jon Miranda16ea1b12017-12-12 14:52:48 -0800166 android:text="@string/explore"
167 android:textColor="@color/currently_set_explore_button_color"
168 android:visibility="gone" />
169
170 </LinearLayout>
171
172
173 </LinearLayout>
174
Santiago Etchebehere17b1b252018-05-08 13:34:11 -0700175 </RelativeLayout>
Jon Miranda16ea1b12017-12-12 14:52:48 -0800176
177 </LinearLayout>
178
179 </android.support.v7.widget.CardView>
180
181</LinearLayout>