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="sud_layout_margin_sides">40dp</dimen> 22 23 <dimen name="sud_glif_button_corner_radius">2dp</dimen> 24 <!-- Calculated by (sud_glif_margin_start - 4dp internal padding of button) --> 25 <dimen name="sud_glif_button_margin_end">20dp</dimen> 26 <!-- Calculated by (sud_glif_margin_start - sud_glif_button_padding) --> 27 <dimen name="sud_glif_button_margin_start">8dp</dimen> 28 <dimen name="sud_glif_button_padding">16dp</dimen> 29 <dimen name="sud_glif_button_min_height">48dp</dimen> 30 <!-- Negative of sud_glif_button_padding --> 31 <dimen name="sud_glif_negative_button_padding">-16dp</dimen> 32 <dimen name="sud_glif_footer_padding_vertical">8dp</dimen> 33 <dimen name="sud_glif_footer_padding_start">8dp</dimen> 34 <!-- Calculated by (sud_glif_margin_end - 4dp internal padding of button) --> 35 <dimen name="sud_glif_footer_padding_end">20dp</dimen> 36 <dimen name="sud_glif_footer_min_height">72dp</dimen> 37 <dimen name="sud_glif_margin_start">24dp</dimen> 38 <dimen name="sud_glif_margin_end">24dp</dimen> 39 <dimen name="sud_glif_icon_margin_top">56dp</dimen> 40 41 <dimen name="sud_glif_alert_dialog_corner_radius">8dp</dimen> 42 <dimen name="sud_glif_v3_button_corner_radius">4dp</dimen> 43 <dimen name="sud_glif_device_default_dialog_corner_radius">28dp</dimen> 44 <dimen name="sud_glif_land_header_area_weight">1</dimen> 45 <dimen name="sud_glif_land_content_area_weight">1</dimen> 46 <dimen name="sud_glif_land_middle_horizontal_spacing">48dp</dimen> 47 48 <!-- Content styles --> 49 <dimen name="sud_check_box_line_spacing_extra">4sp</dimen> 50 <dimen name="sud_check_box_margin_bottom">12dp</dimen> 51 <dimen name="sud_check_box_margin_start">1dp</dimen> 52 <dimen name="sud_check_box_margin_top">24dp</dimen> 53 <dimen name="sud_check_box_padding_start">15dp</dimen> 54 55 <dimen name="sud_content_frame_padding_top">0dp</dimen> 56 <dimen name="sud_content_frame_padding_bottom">16dp</dimen> 57 58 <dimen name="sud_description_margin_top">24dp</dimen> 59 <dimen name="sud_description_margin_bottom">12dp</dimen> 60 <dimen name="sud_description_margin_bottom_lists">24dp</dimen> 61 <dimen name="sud_description_line_spacing_extra">4sp</dimen> 62 <dimen name="sud_description_text_size">16sp</dimen> 63 <!-- This value is the margin bottom difference between DescriptionItem and DescriptionMixin. --> 64 <dimen name="sud_description_margin_top_extra">1dp</dimen> 65 <dimen name="sud_description_margin_bottom_extra">12dp</dimen> 66 67 <!-- TODO: Remove sud_description_glif_margin_xxx once all apps migrate to sud_glif_description_margin_xxx --> 68 <dimen name="sud_description_glif_margin_top">3dp</dimen> 69 <dimen name="sud_description_glif_margin_bottom_lists">24dp</dimen> 70 71 <dimen name="sud_content_glif_margin_top">32dp</dimen> 72 <dimen name="sud_content_glif_margin_bottom">6dp</dimen> 73 74 <dimen name="sud_content_illustration_max_height">312dp</dimen> 75 <dimen name="sud_content_illustration_max_width">312dp</dimen> 76 <dimen name="sud_content_illustration_min_height">172dp</dimen> 77 <dimen name="sud_content_illustration_min_width">172dp</dimen> 78 <dimen name="sud_content_illustration_padding_vertical">24dp</dimen> 79 80 <!-- Loading content styles --> 81 <dimen name="sud_content_loading_frame_padding_top">0dp</dimen> 82 <dimen name="sud_content_loading_frame_padding_start">40dp</dimen> 83 <dimen name="sud_content_loading_frame_padding_end">40dp</dimen> 84 <dimen name="sud_content_loading_frame_padding_bottom">144dp</dimen> 85 86 <dimen name="sud_loading_header_height">274dp</dimen> 87 88 <!-- Glif Content info text --> 89 <dimen name="sud_content_info_text_size">16sp</dimen> 90 <dimen name="sud_content_info_line_spacing_extra">3sp</dimen> 91 <dimen name="sud_content_info_icon_size">18dp</dimen> 92 <dimen name="sud_content_info_icon_margin_end">16dp</dimen> 93 <dimen name="sud_content_info_padding_top">0dp</dimen> 94 <dimen name="sud_content_info_padding_bottom">0dp</dimen> 95 96 <!-- Margin on the start to offset for margin in the drawable --> 97 <dimen name="sud_radio_button_margin_start">-6dp</dimen> 98 <dimen name="sud_radio_button_margin_top">0dp</dimen> 99 <dimen name="sud_radio_button_margin_bottom">12dp</dimen> 100 <dimen name="sud_radio_button_padding_start">18dp</dimen> 101 <dimen name="sud_radio_button_line_spacing_extra">5sp</dimen> 102 103 <!-- Card layout (for tablets) --> 104 <dimen name="sud_card_corner_radius">2dp</dimen> 105 <dimen name="sud_card_elevation">5dp</dimen> 106 <dimen name="sud_card_land_header_text_margin_top">128dp</dimen> 107 <dimen name="sud_card_port_margin_sides">56dp</dimen> 108 109 <dimen name="sud_card_title_padding_end">0dp</dimen> 110 <dimen name="sud_card_title_padding_start">0dp</dimen> 111 <dimen name="sud_card_title_padding_top">16dp</dimen> 112 <dimen name="sud_card_title_padding_bottom">28dp</dimen> 113 114 <!-- Decor view (illustration or the header without illustration) --> 115 <dimen name="sud_decor_padding_top">0dp</dimen> 116 117 <!-- GLIF card layout (for tablets) --> 118 <dimen name="sud_glif_card_elevation">5dp</dimen> 119 <dimen name="sud_glif_card_width">560dp</dimen> 120 <dimen name="sud_glif_card_height">672dp</dimen> 121 122 <!-- Header layout (for phones) --> 123 <dimen name="sud_title_area_elevation">3dp</dimen> 124 <!-- Hack to force the header (and its shadow) to be drawn on top of the list contents --> 125 <dimen name="sud_header_elevation_hack">1dp</dimen> 126 127 <dimen name="sud_header_title_size">24sp</dimen> 128 <dimen name="sud_header_title_margin_bottom">16dp</dimen> 129 <dimen name="sud_header_title_padding_top">16dp</dimen> 130 <dimen name="sud_header_title_padding_bottom">2dp</dimen> 131 <!-- This is the extra spacing required to make the leading exactly 32sp --> 132 <dimen name="sud_header_title_line_spacing_extra">3.67sp</dimen> 133 134 <dimen name="sud_glif_header_title_margin_top">16dp</dimen> 135 <dimen name="sud_glif_header_title_margin_bottom">2dp</dimen> 136 <dimen name="sud_header_container_margin_bottom">0dp</dimen> 137 138 <!-- This value leverages sud_description_glif_margin_top --> 139 <dimen name="sud_glif_description_margin_top">3dp</dimen> 140 <dimen name="sud_glif_description_margin_bottom">12dp</dimen> 141 142 <dimen name="sud_glif_icon_max_height">32dp</dimen> 143 <!-- Illustration --> 144 <item name="sud_illustration_aspect_ratio" format="float" type="dimen">2.22</item> 145 146 <!-- Items --> 147 <dimen name="sud_items_icon_container_width">48dp</dimen> 148 <!-- TODO: Remove it when all attributes being used migrated into new one. --> 149 <dimen name="sud_items_padding_vertical">15dp</dimen> 150 <dimen name="sud_items_verbose_padding_vertical">20dp</dimen> 151 <dimen name="sud_items_title_text_size">16sp</dimen> 152 <dimen name="sud_items_summary_text_size">14sp</dimen> 153 <dimen name="sud_items_summary_margin_top">4dp</dimen> 154 <dimen name="sud_items_padding_top">15dp</dimen> 155 <dimen name="sud_items_padding_bottom">15dp</dimen> 156 157 <!-- Ignore UnusedResources: can be used by clients --> 158 <dimen name="sud_items_icon_divider_inset" tools:ignore="UnusedResources">88dp</dimen> 159 <!-- Ignore UnusedResources: can be used by clients --> 160 <dimen name="sud_items_text_divider_inset" tools:ignore="UnusedResources">40dp</dimen> 161 162 <!-- Ignore UnusedResources: can be used by clients --> 163 <dimen name="sud_items_glif_icon_divider_inset" tools:ignore="UnusedResources">72dp</dimen> 164 <!-- Ignore UnusedResources: can be used by clients --> 165 <dimen name="sud_items_glif_text_divider_inset" tools:ignore="UnusedResources">24dp</dimen> 166 167 <!-- Extra padding in the bottom to compensate for difference between descent and (top) internal leading --> 168 <dimen name="sud_items_padding_bottom_extra">1dp</dimen> 169 <dimen name="sud_items_verbose_padding_bottom_extra">0dp</dimen> 170 <dimen name="sud_items_preferred_height">56dp</dimen> 171 172 <!-- Navigation bar --> 173 <!-- TODO: Move this dimen to gingerbread, or see if it should be in platform style as well --> 174 <dimen name="sud_navbar_button_drawable_padding" tools:ignore="UnusedResources">6dp</dimen> 175 <dimen name="sud_navbar_button_padding_sides">10dp</dimen> 176 <dimen name="sud_navbar_height">56dp</dimen> 177 <dimen name="sud_navbar_ic_intrinsic_size">24dp</dimen> 178 <dimen name="sud_navbar_padding_sides">24dp</dimen> 179 <dimen name="sud_navbar_text_size">16sp</dimen> 180 181 <!-- Progress bar --> 182 <!-- The margin to compensate for the padding built-in to the widget itself --> 183 <dimen name="sud_progress_bar_margin_vertical">-7dp</dimen> 184 <dimen name="sud_glif_progress_bar_margin_vertical">7dp</dimen> 185 <dimen name="sud_glif_progress_bar_padding">40dp</dimen> 186 187 <!-- Edit Text dimensions --> 188 <dimen name="sud_edit_text_min_height">56dp</dimen> 189 <dimen name="sud_edit_text_padding_horizontal">12dp</dimen> 190 191 <!-- SwitchItem --> 192 <dimen name="sud_switch_padding_start">16dp</dimen> 193 <dimen name="sud_switch_padding_end">0dp</dimen> 194 <dimen name="sud_switch_padding_top">39dp</dimen> 195 <dimen name="sud_switch_divider_height">32dp</dimen> 196 <dimen name="sud_switch_divider_padding_top">36dp</dimen> 197 <dimen name="sud_switch_content_padding_end">16dp</dimen> 198 199 <!-- ExpandableSwithItem --> 200 <dimen name="sud_expand_arrow_drawable_padding">4dp</dimen> 201 202 <!-- SwitchBar --> 203 <!-- Minimum width of switch --> 204 <dimen name="sud_switch_min_width">52dp</dimen> 205 <!-- Margin of switch thumb --> 206 <dimen name="sud_switch_thumb_margin">4dp</dimen> 207 <!-- Size of switch thumb --> 208 <dimen name="sud_switch_thumb_size">20dp</dimen> 209 <!-- Width of switch track --> 210 <dimen name="sud_switch_track_width">52dp</dimen> 211 <!-- Height of switch track --> 212 <dimen name="sud_switch_track_height">28dp</dimen> 213 <!-- Radius of switch track --> 214 <dimen name="sud_switch_track_radius">35dp</dimen> 215 216 <!-- IconUniformityAppImageView --> 217 <!-- Set 0dp since we don't want shadow. --> 218 <dimen name="sud_icon_uniformity_elevation">0dp</dimen> 219 220</resources> 221