1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3    Copyright (C) 2015 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9         http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17
18<resources xmlns:tools="http://schemas.android.com/tools">
19
20    <!-- General -->
21    <dimen name="suw_layout_margin_sides">40dp</dimen>
22
23    <dimen name="suw_glif_button_corner_radius">2dp</dimen>
24    <!-- Calculated by (suw_glif_margin_sides - 4dp internal padding of button) -->
25    <dimen name="suw_glif_button_margin_end">20dp</dimen>
26    <!-- Calculated by (suw_glif_margin_sides - suw_glif_button_padding) -->
27    <dimen name="suw_glif_button_margin_start">8dp</dimen>
28    <dimen name="suw_glif_button_padding">16dp</dimen>
29    <!-- Negative of suw_glif_button_padding -->
30    <dimen name="suw_glif_negative_button_padding">-16dp</dimen>
31    <dimen name="suw_glif_footer_padding_vertical">8dp</dimen>
32    <dimen name="suw_glif_footer_min_height">72dp</dimen>
33    <dimen name="suw_glif_margin_sides">24dp</dimen>
34    <dimen name="suw_glif_margin_top">56dp</dimen>
35
36    <dimen name="suw_glif_v3_button_corner_radius">4dp</dimen>
37
38    <!-- Content styles -->
39    <dimen name="suw_check_box_line_spacing_extra">4sp</dimen>
40    <dimen name="suw_check_box_margin_bottom">12dp</dimen>
41    <dimen name="suw_check_box_margin_start">1dp</dimen>
42    <dimen name="suw_check_box_margin_top">24dp</dimen>
43    <dimen name="suw_check_box_padding_start">15dp</dimen>
44
45    <dimen name="suw_content_frame_padding_top">0dp</dimen>
46    <dimen name="suw_content_frame_padding_bottom">16dp</dimen>
47
48    <dimen name="suw_description_margin_top">24dp</dimen>
49    <dimen name="suw_description_margin_bottom">12dp</dimen>
50    <dimen name="suw_description_margin_bottom_lists">24dp</dimen>
51    <dimen name="suw_description_line_spacing_extra">4sp</dimen>
52    <dimen name="suw_description_text_size">16sp</dimen>
53
54    <dimen name="suw_description_glif_margin_top">3dp</dimen>
55    <dimen name="suw_description_glif_margin_bottom_lists">24dp</dimen>
56
57    <dimen name="suw_content_illustration_max_height">312dp</dimen>
58    <dimen name="suw_content_illustration_max_width">312dp</dimen>
59    <dimen name="suw_content_illustration_min_height">172dp</dimen>
60    <dimen name="suw_content_illustration_min_width">172dp</dimen>
61    <dimen name="suw_content_illustration_padding_vertical">24dp</dimen>
62
63    <!-- Margin on the start to offset for margin in the drawable -->
64    <dimen name="suw_radio_button_margin_start">-6dp</dimen>
65    <dimen name="suw_radio_button_margin_top">0dp</dimen>
66    <dimen name="suw_radio_button_margin_bottom">12dp</dimen>
67    <dimen name="suw_radio_button_padding_start">18dp</dimen>
68    <dimen name="suw_radio_button_line_spacing_extra">5sp</dimen>
69
70    <!-- Card layout (for tablets) -->
71    <dimen name="suw_card_corner_radius">2dp</dimen>
72    <dimen name="suw_card_elevation">5dp</dimen>
73    <dimen name="suw_card_land_header_text_margin_top">128dp</dimen>
74    <dimen name="suw_card_port_margin_sides">56dp</dimen>
75
76    <dimen name="suw_card_title_padding_end">0dp</dimen>
77    <dimen name="suw_card_title_padding_start">0dp</dimen>
78    <dimen name="suw_card_title_padding_top">16dp</dimen>
79    <dimen name="suw_card_title_padding_bottom">28dp</dimen>
80
81    <!-- Decor view (illustration or the header without illustration) -->
82    <dimen name="suw_decor_padding_top">0dp</dimen>
83
84    <!-- GLIF card layout (for tablets) -->
85    <dimen name="suw_glif_card_elevation">5dp</dimen>
86    <dimen name="suw_glif_card_width">560dp</dimen>
87    <dimen name="suw_glif_card_height">672dp</dimen>
88
89    <!-- Header layout (for phones) -->
90    <dimen name="suw_title_area_elevation">3dp</dimen>
91    <!-- Hack to force the header (and its shadow) to be drawn on top of the list contents -->
92    <dimen name="suw_header_elevation_hack">1dp</dimen>
93
94    <dimen name="suw_header_title_size">24sp</dimen>
95    <dimen name="suw_header_title_margin_bottom">16dp</dimen>
96    <dimen name="suw_header_title_padding_top">16dp</dimen>
97    <dimen name="suw_header_title_padding_bottom">2dp</dimen>
98    <!-- This is the extra spacing required to make the leading exactly 32sp -->
99    <dimen name="suw_header_title_line_spacing_extra">3.67sp</dimen>
100
101    <dimen name="suw_glif_header_title_margin_top">16dp</dimen>
102    <dimen name="suw_glif_header_title_margin_bottom">2dp</dimen>
103
104    <dimen name="suw_glif_icon_max_height">32dp</dimen>
105
106    <!-- Illustration -->
107    <item name="suw_illustration_aspect_ratio" format="float" type="dimen">2.22</item>
108
109    <!-- Items -->
110    <dimen name="suw_items_icon_container_width">48dp</dimen>
111    <dimen name="suw_items_padding_vertical">15dp</dimen>
112    <dimen name="suw_items_verbose_padding_vertical">20dp</dimen>
113
114    <!-- Ignore UnusedResources: can be used by clients -->
115    <dimen name="suw_items_icon_divider_inset" tools:ignore="UnusedResources">88dp</dimen>
116    <!-- Ignore UnusedResources: can be used by clients -->
117    <dimen name="suw_items_text_divider_inset" tools:ignore="UnusedResources">40dp</dimen>
118
119    <!-- Ignore UnusedResources: can be used by clients -->
120    <dimen name="suw_items_glif_icon_divider_inset" tools:ignore="UnusedResources">72dp</dimen>
121    <!-- Ignore UnusedResources: can be used by clients -->
122    <dimen name="suw_items_glif_text_divider_inset" tools:ignore="UnusedResources">24dp</dimen>
123
124    <!-- Extra padding in the bottom to compensate for difference between descent and (top) internal leading -->
125    <dimen name="suw_items_padding_bottom_extra">1dp</dimen>
126    <dimen name="suw_items_verbose_padding_bottom_extra">0dp</dimen>
127    <dimen name="suw_items_preferred_height">56dp</dimen>
128
129    <!-- Navigation bar -->
130    <!-- TODO: Move this dimen to gingerbread, or see if it should be in platform style as well -->
131    <dimen name="suw_navbar_button_drawable_padding" tools:ignore="UnusedResources">6dp</dimen>
132    <dimen name="suw_navbar_button_padding_sides">10dp</dimen>
133    <dimen name="suw_navbar_height">56dp</dimen>
134    <dimen name="suw_navbar_ic_intrinsic_size">24dp</dimen>
135    <dimen name="suw_navbar_padding_sides">24dp</dimen>
136    <dimen name="suw_navbar_text_size">16sp</dimen>
137
138    <!-- Progress bar -->
139    <!-- The margin to compensate for the padding built-in to the widget itself -->
140    <dimen name="suw_progress_bar_margin_vertical">-7dp</dimen>
141    <dimen name="suw_glif_progress_bar_margin_vertical">7dp</dimen>
142    <dimen name="suw_glif_progress_bar_padding">40dp</dimen>
143
144    <!-- Edit Text dimensions -->
145    <dimen name="suw_edit_text_min_height">56dp</dimen>
146    <dimen name="suw_edit_text_padding_horizontal">12dp</dimen>
147
148</resources>
149