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 styles --> 21 22 <style name="SudThemeMaterial" parent="Theme.AppCompat.NoActionBar"> 23 <item name="android:colorBackground">@color/sud_color_background_dark</item> 24 <item name="android:indeterminateTint" tools:ignore="NewApi">@color/sud_progress_bar_color_dark</item> 25 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 26 <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item> 27 <item name="android:listPreferredItemHeight">@dimen/sud_items_preferred_height</item> 28 <item name="android:listPreferredItemPaddingEnd" tools:ignore="NewApi">?attr/sudMarginSides</item> 29 <item name="android:listPreferredItemPaddingStart" tools:ignore="NewApi">?attr/sudMarginSides</item> 30 <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item> 31 <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/black</item> 32 <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item> 33 <item name="android:textColorLink">@color/sud_link_color_dark</item> 34 <item name="android:windowAnimationStyle">@style/Animation.SudWindowAnimation</item> 35 <item name="android:windowDisablePreview">true</item> 36 <item name="android:windowSoftInputMode">adjustResize</item> 37 38 <item name="colorAccent">@color/sud_color_accent_dark</item> 39 <item name="sudFillContentLayoutStyle">@style/SudFillContentLayout</item> 40 <item name="listPreferredItemPaddingLeft">?attr/sudMarginSides</item> 41 <item name="listPreferredItemPaddingRight">?attr/sudMarginSides</item> 42 <item name="sudButtonAllCaps">true</item> 43 <item name="sudButtonFontFamily">sans-serif</item> 44 <item name="sudButtonHighlightAlpha">0.24</item> 45 <item name="sudCardBackground">@drawable/sud_card_bg_dark</item> 46 <item name="sudDividerInsetEnd">0dp</item> 47 <item name="sudDividerInsetStart">@dimen/sud_items_icon_divider_inset</item> 48 <item name="sudDividerInsetStartNoIcon">@dimen/sud_items_text_divider_inset</item> 49 <item name="sudItemDescriptionStyle">@style/SudItemContainer.Description</item> 50 <item name="sudItemDescriptionTitleStyle">@style/SudItemTitle</item> 51 <item name="sudListItemIconColor">@color/sud_list_item_icon_color_dark</item> 52 <item name="sudMarginSides">@dimen/sud_layout_margin_sides</item> 53 <item name="sudNavBarTheme">@style/SudNavBarThemeDark</item> 54 <item name="textAppearanceListItemSmall">@style/TextAppearance.SudItemSummary</item> 55 </style> 56 57 <style name="SudThemeMaterial.Light" parent="Theme.AppCompat.Light.NoActionBar"> 58 <item name="android:colorBackground">@color/sud_color_background_light</item> 59 <item name="android:indeterminateTint" tools:ignore="NewApi">@color/sud_progress_bar_color_light</item> 60 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 61 <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item> 62 <item name="android:listPreferredItemHeight">@dimen/sud_items_preferred_height</item> 63 <item name="android:listPreferredItemPaddingEnd" tools:ignore="NewApi">?attr/sudMarginSides</item> 64 <item name="android:listPreferredItemPaddingStart" tools:ignore="NewApi">?attr/sudMarginSides</item> 65 <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item> 66 <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/black</item> 67 <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item> 68 <item name="android:textColorLink">@color/sud_link_color_light</item> 69 <item name="android:windowAnimationStyle">@style/Animation.SudWindowAnimation</item> 70 <item name="android:windowDisablePreview">true</item> 71 <item name="android:windowSoftInputMode">adjustResize</item> 72 73 <item name="colorAccent">@color/sud_color_accent_light</item> 74 <item name="sudFillContentLayoutStyle">@style/SudFillContentLayout</item> 75 <item name="listPreferredItemPaddingLeft">?attr/sudMarginSides</item> 76 <item name="listPreferredItemPaddingRight">?attr/sudMarginSides</item> 77 <item name="sudButtonAllCaps">true</item> 78 <item name="sudButtonFontFamily">sans-serif</item> 79 <item name="sudButtonHighlightAlpha">0.24</item> 80 <item name="sudCardBackground">@drawable/sud_card_bg_light</item> 81 <item name="sudDividerInsetEnd">0dp</item> 82 <item name="sudDividerInsetStart">@dimen/sud_items_icon_divider_inset</item> 83 <item name="sudDividerInsetStartNoIcon">@dimen/sud_items_text_divider_inset</item> 84 <item name="sudItemDescriptionStyle">@style/SudItemContainer.Description</item> 85 <item name="sudItemDescriptionTitleStyle">@style/SudItemTitle</item> 86 <item name="sudListItemIconColor">@color/sud_list_item_icon_color_light</item> 87 <item name="sudMarginSides">@dimen/sud_layout_margin_sides</item> 88 <item name="sudNavBarTheme">@style/SudNavBarThemeLight</item> 89 <item name="textAppearanceListItemSmall">@style/TextAppearance.SudItemSummary</item> 90 </style> 91 92 <style name="SudBaseThemeGlif" parent="Theme.AppCompat.NoActionBar"> 93 <item name="android:colorBackground">@color/sud_glif_background_color_dark</item> 94 <item name="android:indeterminateTint" tools:ignore="NewApi">?attr/colorControlActivated</item> 95 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 96 <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item> 97 <item name="android:listPreferredItemHeight">@dimen/sud_items_preferred_height</item> 98 <item name="android:listPreferredItemPaddingEnd" tools:ignore="NewApi">?attr/sudMarginSides</item> 99 <item name="android:listPreferredItemPaddingStart" tools:ignore="NewApi">?attr/sudMarginSides</item> 100 <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item> 101 <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/transparent</item> 102 <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item> 103 <item name="android:textColorLink">@color/sud_color_accent_glif_dark</item> 104 <item name="android:windowAnimationStyle">@style/Animation.SudWindowAnimation</item> 105 <item name="android:windowDisablePreview">true</item> 106 <item name="android:windowSoftInputMode">adjustResize</item> 107 108 <item name="colorAccent">@color/sud_color_accent_glif_dark</item> 109 <item name="colorPrimary">?attr/colorAccent</item> 110 <item name="listPreferredItemPaddingLeft">?attr/sudMarginSides</item> 111 <item name="listPreferredItemPaddingRight">?attr/sudMarginSides</item> 112 <item name="sudButtonAllCaps">true</item> 113 <item name="sudButtonCornerRadius">@dimen/sud_glif_button_corner_radius</item> 114 <item name="sudButtonFontFamily">sans-serif-medium</item> 115 <item name="sudButtonHighlightAlpha">0.24</item> 116 <item name="sudColorPrimary">?attr/colorPrimary</item> 117 <item name="sudFillContentLayoutStyle">@style/SudFillContentLayout</item> 118 <item name="sudDividerInsetEnd">0dp</item> 119 <item name="sudDividerInsetStart">@dimen/sud_items_glif_icon_divider_inset</item> 120 <item name="sudDividerInsetStartNoIcon">@dimen/sud_items_glif_text_divider_inset</item> 121 <item name="sudGlifHeaderGravity">start</item> 122 <item name="sudGlifIconStyle">@style/SudGlifIcon</item> 123 <item name="sudItemDescriptionStyle">@style/SudItemContainer.Description.Glif</item> 124 <item name="sudItemDescriptionTitleStyle">@style/SudItemTitle.GlifDescription</item> 125 <item name="sudListItemIconColor">@color/sud_list_item_icon_color_dark</item> 126 <item name="sudMarginSides">@dimen/sud_glif_margin_sides</item> 127 <item name="sudScrollIndicators">bottom</item> 128 <item name="textAppearanceListItem">@style/TextAppearance.SudGlifItemTitle</item> 129 <item name="textAppearanceListItemSmall">@style/TextAppearance.SudGlifItemSummary</item> 130 <item name="sucFooterBarButtonFontFamily">?attr/sudButtonFontFamily</item> 131 <item name="sucFooterBarButtonCornerRadius">?attr/sudButtonCornerRadius</item> 132 <item name="sucFooterBarButtonAllCaps">?attr/sudButtonAllCaps</item> 133 <item name="sucFooterBarButtonColorControlHighlightRipple">?attr/colorAccent</item> 134 <item name="sucFooterBarButtonHighlightAlpha">?attr/sudButtonHighlightAlpha</item> 135 <item name="sucStatusBarBackground">?android:attr/colorBackground</item> 136 <item name="sucSystemNavBarBackgroundColor">@android:color/black</item> 137 <item name="sucFooterBarPaddingVertical">@dimen/sud_glif_footer_padding_vertical</item> 138 </style> 139 <style name="SudThemeGlif" parent="SudBaseThemeGlif"/> 140 141 <style name="SudBaseThemeGlif.Light" parent="Theme.AppCompat.Light.NoActionBar"> 142 <item name="android:colorBackground">@color/sud_glif_background_color_light</item> 143 <item name="android:indeterminateTint" tools:ignore="NewApi">?attr/colorControlActivated</item> 144 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 145 <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item> 146 <item name="android:listPreferredItemHeight">@dimen/sud_items_preferred_height</item> 147 <item name="android:listPreferredItemPaddingEnd" tools:ignore="NewApi">?attr/sudMarginSides</item> 148 <item name="android:listPreferredItemPaddingStart" tools:ignore="NewApi">?attr/sudMarginSides</item> 149 <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item> 150 <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/transparent</item> 151 <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item> 152 <item name="android:textColorLink">@color/sud_color_accent_glif_light</item> 153 <item name="android:windowAnimationStyle">@style/Animation.SudWindowAnimation</item> 154 <item name="android:windowDisablePreview">true</item> 155 <item name="android:windowSoftInputMode">adjustResize</item> 156 157 <item name="colorAccent">@color/sud_color_accent_glif_light</item> 158 <item name="colorPrimary">?attr/colorAccent</item> 159 <item name="listPreferredItemPaddingLeft">?attr/sudMarginSides</item> 160 <item name="listPreferredItemPaddingRight">?attr/sudMarginSides</item> 161 <item name="sudButtonAllCaps">true</item> 162 <item name="sudButtonCornerRadius">@dimen/sud_glif_button_corner_radius</item> 163 <item name="sudButtonFontFamily">sans-serif-medium</item> 164 <item name="sudButtonHighlightAlpha">0.12</item> 165 <item name="sudColorPrimary">?attr/colorPrimary</item> 166 <item name="sudFillContentLayoutStyle">@style/SudFillContentLayout</item> 167 <item name="sudDividerInsetEnd">0dp</item> 168 <item name="sudDividerInsetStart">@dimen/sud_items_glif_icon_divider_inset</item> 169 <item name="sudDividerInsetStartNoIcon">@dimen/sud_items_glif_text_divider_inset</item> 170 <item name="sudGlifHeaderGravity">start</item> 171 <item name="sudGlifIconStyle">@style/SudGlifIcon</item> 172 <item name="sudItemDescriptionStyle">@style/SudItemContainer.Description.Glif</item> 173 <item name="sudItemDescriptionTitleStyle">@style/SudItemTitle.GlifDescription</item> 174 <item name="sudListItemIconColor">@color/sud_list_item_icon_color_light</item> 175 <item name="sudMarginSides">@dimen/sud_glif_margin_sides</item> 176 <item name="sudScrollIndicators">bottom</item> 177 <item name="textAppearanceListItem">@style/TextAppearance.SudGlifItemTitle</item> 178 <item name="textAppearanceListItemSmall">@style/TextAppearance.SudGlifItemSummary</item> 179 <item name="sucFooterBarButtonFontFamily">?attr/sudButtonFontFamily</item> 180 <item name="sucFooterBarButtonCornerRadius">?attr/sudButtonCornerRadius</item> 181 <item name="sucFooterBarButtonAllCaps">?attr/sudButtonAllCaps</item> 182 <item name="sucFooterBarButtonColorControlHighlightRipple">?attr/colorAccent</item> 183 <item name="sucFooterBarButtonHighlightAlpha">?attr/sudButtonHighlightAlpha</item> 184 <item name="sucStatusBarBackground">?android:attr/colorBackground</item> 185 <item name="sucSystemNavBarBackgroundColor">@android:color/black</item> 186 <item name="sucFooterBarPaddingVertical">@dimen/sud_glif_footer_padding_vertical</item> 187 </style> 188 <style name="SudThemeGlif.Light" parent="SudBaseThemeGlif.Light"/> 189 190 <style name="SudThemeGlifV2" parent="SudThemeGlif"> 191 <item name="android:colorBackground">@color/sud_glif_background_color_dark</item> 192 <item name="android:windowLightStatusBar" tools:targetApi="m">false</item> 193 194 <item name="sudBackgroundBaseColor">?android:attr/colorBackground</item> 195 <item name="sudBackgroundPatterned">false</item> 196 <item name="sudDividerInsetEnd">?attr/sudMarginSides</item> 197 <item name="sudDividerInsetStart">?attr/sudMarginSides</item> 198 <item name="sudDividerInsetStartNoIcon">?attr/sudMarginSides</item> 199 <item name="sudGlifHeaderGravity">center_horizontal</item> 200 <item name="sudScrollIndicators">top|bottom</item> 201 <item name="sudEditTextBackgroundColor">@color/sud_glif_edit_text_bg_dark_color</item> 202 <item name="android:editTextStyle">@style/SudEditText</item> 203 <item name="android:alertDialogTheme" tools:targetApi="honeycomb">@style/SudAlertDialogTheme</item> 204 <item name="sucLightStatusBar" tools:targetApi="m">?android:attr/windowLightStatusBar</item> 205 </style> 206 207 <style name="SudThemeGlifV2.Light" parent="SudThemeGlif.Light"> 208 <item name="android:colorBackground">@color/sud_glif_background_color_light</item> 209 <item name="android:windowLightStatusBar" tools:targetApi="m">true</item> 210 211 <item name="sudBackgroundBaseColor">?android:attr/colorBackground</item> 212 <item name="sudBackgroundPatterned">false</item> 213 <item name="sudDividerInsetEnd">?attr/sudMarginSides</item> 214 <item name="sudDividerInsetStart">?attr/sudMarginSides</item> 215 <item name="sudDividerInsetStartNoIcon">?attr/sudMarginSides</item> 216 <item name="sudGlifHeaderGravity">center_horizontal</item> 217 <item name="sudScrollIndicators">top|bottom</item> 218 <item name="sudEditTextBackgroundColor">@color/sud_glif_edit_text_bg_light_color</item> 219 <item name="android:editTextStyle">@style/SudEditText</item> 220 <item name="android:alertDialogTheme" tools:targetApi="honeycomb">@style/SudAlertDialogTheme.Light</item> 221 <item name="sucLightStatusBar" tools:targetApi="m">?android:attr/windowLightStatusBar</item> 222 </style> 223 224 <style name="SudThemeGlifV3" parent="SudThemeGlifV2"> 225 <item name="colorAccent">@color/sud_color_accent_glif_v3_dark</item> 226 <item name="colorBackgroundFloating">@color/sud_glif_v3_dialog_background_color_dark</item> 227 <item name="sudButtonAllCaps">false</item> 228 <item name="sudButtonCornerRadius">@dimen/sud_glif_v3_button_corner_radius</item> 229 <item name="sudButtonFontFamily">@string/sudFontSecondaryMedium</item> 230 </style> 231 232 <style name="SudBaseThemeGlifV3.Light" parent="SudThemeGlifV2.Light"> 233 <item name="colorAccent">@color/sud_color_accent_glif_v3_light</item> 234 <item name="sudButtonAllCaps">false</item> 235 <item name="sudButtonCornerRadius">@dimen/sud_glif_v3_button_corner_radius</item> 236 <item name="sudButtonFontFamily">@string/sudFontSecondaryMedium</item> 237 </style> 238 <style name="SudThemeGlifV3.Light" parent="SudBaseThemeGlifV3.Light" /> 239 240 <style name="Animation.SudWindowAnimation" parent="@android:style/Animation.Activity"> 241 <item name="android:activityOpenEnterAnimation">@anim/sud_slide_next_in</item> 242 <item name="android:activityOpenExitAnimation">@anim/sud_slide_next_out</item> 243 <item name="android:activityCloseEnterAnimation">@anim/sud_slide_back_in</item> 244 <item name="android:activityCloseExitAnimation">@anim/sud_slide_back_out</item> 245 </style> 246 247 <!-- DayNight themes --> 248 <style name="SudThemeMaterial.DayNight" parent="SudThemeMaterial.Light" /> 249 <style name="SudThemeGlif.DayNight" parent="SudThemeGlif.Light" /> 250 <style name="SudThemeGlifV2.DayNight" parent="SudThemeGlifV2.Light" /> 251 <style name="SudThemeGlifV3.DayNight" parent="SudThemeGlifV3.Light" /> 252 253 <!-- Content styles --> 254 255 <!-- Ignore UnusedResources: Used by clients --> 256 <style name="SudContentFrame" tools:ignore="UnusedResources"> 257 <item name="android:clipToPadding">false</item> 258 <item name="android:paddingTop">@dimen/sud_content_frame_padding_top</item> 259 <item name="android:paddingLeft">?attr/sudMarginSides</item> 260 <item name="android:paddingRight">?attr/sudMarginSides</item> 261 <item name="android:paddingBottom">@dimen/sud_content_frame_padding_bottom</item> 262 </style> 263 264 <!-- Ignore UnusedResources: Used by clients --> 265 <style name="SudDescription" tools:ignore="UnusedResources"> 266 <!-- Before Honeycomb, layout_gravity is needed for FrameLayout to apply the margins --> 267 <item name="android:layout_gravity">top</item> 268 <item name="android:layout_marginBottom">@dimen/sud_description_margin_bottom</item> 269 <item name="android:layout_marginTop">@dimen/sud_description_margin_top</item> 270 <item name="android:lineSpacingExtra">@dimen/sud_description_line_spacing_extra</item> 271 <item name="android:textAppearance">@style/TextAppearance.SudDescription</item> 272 </style> 273 274 <!-- Ignore UnusedResources: Used by clients --> 275 <style name="SudDescription.Glif" parent="SudDescription" tools:ignore="UnusedResources"> 276 <item name="android:layout_marginTop">@dimen/sud_description_glif_margin_top</item> 277 <item name="android:gravity">?attr/sudGlifHeaderGravity</item> 278 <item name="android:textAlignment" tools:targetApi="jelly_bean_mr1">gravity</item> 279 </style> 280 281 <!-- Ignore UnusedResources: Used by clients --> 282 <style name="SudContent.Glif" parent="SudDescription" tools:ignore="UnusedResources"> 283 <item name="android:layout_marginTop">@dimen/sud_content_glif_margin_top</item> 284 <item name="android:gravity">?attr/sudGlifHeaderGravity</item> 285 <item name="android:textAlignment" tools:targetApi="jelly_bean_mr1">gravity</item> 286 </style> 287 288 <style name="TextAppearance.SudDescription" parent="TextAppearance.AppCompat.Medium"> 289 <item name="android:textColor">?android:attr/textColorPrimary</item> 290 <item name="android:textSize">@dimen/sud_description_text_size</item> 291 </style> 292 293 <!-- Ignore UnusedResources: Used by clients --> 294 <style name="TextAppearance.SudDescription.Secondary" 295 parent="TextAppearance.SudDescription" 296 tools:ignore="UnusedResources"> 297 <item name="android:textColor">?android:attr/textColorSecondary</item> 298 </style> 299 300 <!-- Ignore UnusedResources: Used by clients --> 301 <style name="SudRadioButton" tools:ignore="UnusedResources"> 302 <item name="android:layout_marginBottom">@dimen/sud_radio_button_margin_bottom</item> 303 <item name="android:layout_marginLeft">@dimen/sud_radio_button_margin_start</item> 304 <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/sud_radio_button_margin_start</item> 305 <item name="android:layout_marginTop">@dimen/sud_radio_button_margin_top</item> 306 <item name="android:lineSpacingExtra">@dimen/sud_radio_button_line_spacing_extra</item> 307 <item name="android:paddingLeft">@dimen/sud_radio_button_padding_start</item> 308 <item name="android:paddingStart" tools:ignore="NewApi">@dimen/sud_radio_button_padding_start</item> 309 <item name="android:textAppearance">@style/TextAppearance.SudDescription</item> 310 </style> 311 312 <!-- Ignore UnusedResources: used by clients --> 313 <style name="SudCheckBox" tools:ignore="UnusedResources"> 314 <item name="android:layout_marginBottom">@dimen/sud_check_box_margin_bottom</item> 315 <item name="android:layout_marginLeft">@dimen/sud_check_box_margin_start</item> 316 <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/sud_check_box_margin_start</item> 317 <item name="android:layout_marginTop">@dimen/sud_check_box_margin_top</item> 318 <item name="android:lineSpacingExtra">@dimen/sud_check_box_line_spacing_extra</item> 319 <item name="android:paddingLeft">@dimen/sud_check_box_padding_start</item> 320 <item name="android:paddingStart" tools:ignore="NewApi">@dimen/sud_check_box_padding_start</item> 321 <item name="android:textAppearance">@style/TextAppearance.SudDescription</item> 322 </style> 323 324 <!-- Ignore UnusedResources: used by clients --> 325 <style name="SudCheckBox.Multiline" parent="SudCheckBox" tools:ignore="UnusedResources"> 326 <item name="android:gravity">top</item> 327 </style> 328 329 <style name="SudFillContentLayout"> 330 <item name="android:minWidth">@dimen/sud_content_illustration_min_width</item> 331 <item name="android:minHeight">@dimen/sud_content_illustration_min_height</item> 332 <item name="android:maxWidth">@dimen/sud_content_illustration_max_width</item> 333 <item name="android:maxHeight">@dimen/sud_content_illustration_max_height</item> 334 <item name="android:paddingTop">@dimen/sud_content_illustration_padding_vertical</item> 335 <item name="android:paddingBottom">@dimen/sud_content_illustration_padding_vertical</item> 336 </style> 337 338 <!-- Ignore UnusedResources: used by clients --> 339 <style name="SudContentIllustration" tools:ignore="UnusedResources"> 340 <item name="android:layout_gravity">center</item> 341 <item name="android:scaleType">fitCenter</item> 342 </style> 343 344 <!-- Card layout (for tablets) --> 345 346 <style name="SudBaseCardTitle"> 347 <item name="android:ellipsize">end</item> 348 <item name="android:maxLines">2</item> 349 <item name="android:paddingBottom">@dimen/sud_card_title_padding_bottom</item> 350 <item name="android:paddingEnd" tools:ignore="NewApi">@dimen/sud_card_title_padding_end</item> 351 <item name="android:paddingLeft">@dimen/sud_card_title_padding_start</item> 352 <item name="android:paddingRight">@dimen/sud_card_title_padding_end</item> 353 <item name="android:paddingStart" tools:ignore="NewApi">@dimen/sud_card_title_padding_start</item> 354 <item name="android:paddingTop">@dimen/sud_card_title_padding_top</item> 355 <item name="android:textAppearance">@style/TextAppearance.SudCardTitle</item> 356 </style> 357 358 <style name="SudCardTitle" parent="SudBaseCardTitle" /> 359 360 <style name="TextAppearance.SudCardTitle" parent="@style/TextAppearance.AppCompat.Display1"> 361 <item name="android:textColor">@android:color/white</item> 362 </style> 363 364 <!-- GLIF Card layout (for tablets) --> 365 366 <style name="SudGlifCardBackground"> 367 <item name="android:background">?attr/colorPrimary</item> 368 </style> 369 370 <style name="SudGlifCardContainer"> 371 <item name="android:background">?android:attr/colorBackground</item> 372 <item name="android:elevation" tools:ignore="NewApi">@dimen/sud_glif_card_elevation</item> 373 </style> 374 375 <style name="SudBase.ProgressBarLarge" parent="@android:style/Widget.ProgressBar.Large" /> 376 377 <style name="SudFourColorIndeterminateProgressBar" parent="SudBase.ProgressBarLarge"> 378 <item name="android:layout_gravity">center</item> 379 <item name="android:indeterminate">true</item> 380 <item name="android:paddingEnd" tools:targetApi="17" >@dimen/sud_glif_progress_bar_padding</item> 381 <item name="android:paddingLeft">@dimen/sud_glif_progress_bar_padding</item> 382 <item name="android:paddingRight">@dimen/sud_glif_progress_bar_padding</item> 383 <item name="android:paddingStart" tools:targetApi="17" >@dimen/sud_glif_progress_bar_padding</item> 384 </style> 385 386 <!-- Header layout (for phones) --> 387 388 <style name="SudBaseHeaderTitle"> 389 <!-- Before Honeycomb, layout_gravity is needed for FrameLayout to apply the margins --> 390 <item name="android:layout_gravity">top</item> 391 <item name="android:ellipsize">end</item> 392 <item name="android:maxLines">3</item> 393 <item name="android:textSize">@dimen/sud_header_title_size</item> 394 </style> 395 396 <style name="SudHeaderTitle" parent="SudBaseHeaderTitle"> 397 <item name="android:layout_marginBottom">@dimen/sud_header_title_margin_bottom</item> 398 <item name="android:layout_marginLeft">?attr/sudMarginSides</item> 399 <item name="android:layout_marginRight">?attr/sudMarginSides</item> 400 <item name="android:lineSpacingExtra">@dimen/sud_header_title_line_spacing_extra</item> 401 <item name="android:paddingBottom">@dimen/sud_header_title_padding_bottom</item> 402 <item name="android:paddingTop">@dimen/sud_header_title_padding_top</item> 403 <item name="android:textColor">@android:color/white</item> 404 </style> 405 406 <!-- Button styles --> 407 408 <style name="SudButtonItem" /> 409 410 <style name="SudButtonItem.Colored" parent="SudGlifButton.Primary" /> 411 412 <!-- Use this style with a Button not a TextView, so that TalkBack will announce it as a 413 button. --> 414 <style name="SudGlifButton.BaseTertiary" parent="SudGlifButton.Secondary"> 415 <!-- This style can be applied to a button either as a "style" in XML, or as a theme in 416 ContextThemeWrapper. These self-referencing attributes make sure this is applied as 417 both to the button. --> 418 <item name="android:buttonStyle">@style/SudGlifButton.Tertiary</item> 419 <item name="android:theme">@style/SudGlifButton.Tertiary</item> 420 421 <item name="android:fontFamily" tools:targetApi="jelly_bean">sans-serif</item> 422 <item name="android:layout_gravity">?attr/sudGlifHeaderGravity</item> 423 <item name="android:layout_marginLeft">@dimen/sud_glif_negative_button_padding</item> 424 <item name="android:layout_marginRight">@dimen/sud_glif_negative_button_padding</item> 425 <!-- Always lowercase instead of reading attr/sudButtonAllCaps, since this is a tertiary 426 button --> 427 <item name="android:textAllCaps" tools:targetApi="ice_cream_sandwich">false</item> 428 </style> 429 430 <!-- Ignore UnusedResources: used by clients --> 431 <style name="SudGlifButton.Tertiary" parent="SudGlifButton.BaseTertiary" 432 tools:ignore="UnusedResources"> 433 <item name="android:fontFamily" tools:targetApi="jelly_bean">?attr/sudButtonFontFamily</item> 434 <item name="textAllCaps" tools:targetApi="ice_cream_sandwich">false</item> 435 </style> 436 437 <style name="SudGlifButton.Primary" parent="Widget.AppCompat.Button.Colored"> 438 <!-- This style can be applied to a button either as a "style" in XML, or as a theme in 439 ContextThemeWrapper. These self-referencing attributes make sure this is applied as 440 both to the button. --> 441 <item name="android:buttonStyle">@style/SudGlifButton.Primary</item> 442 <item name="android:theme">@style/SudGlifButton.Primary</item> 443 <item name="buttonStyle">@style/SudGlifButton.Primary</item> 444 445 <!-- Values used in styles --> 446 <item name="android:fontFamily" tools:targetApi="jelly_bean">?attr/sudButtonFontFamily</item> 447 <item name="android:paddingLeft">@dimen/sud_glif_button_padding</item> 448 <item name="android:paddingRight">@dimen/sud_glif_button_padding</item> 449 <item name="android:textAllCaps" tools:targetApi="ice_cream_sandwich">?attr/sudButtonAllCaps</item> 450 <item name="textAllCaps">?attr/sudButtonAllCaps</item> 451 <item name="android:stateListAnimator">@null</item> 452 453 <!-- Values used in themes --> 454 <item name="android:buttonCornerRadius" tools:ignore="NewApi">?attr/sudButtonCornerRadius</item> 455 </style> 456 457 <style name="SudGlifButton.Secondary" parent="Widget.AppCompat.Button.Borderless.Colored"> 458 <!-- This style can be applied to a button either as a "style" in XML, or as a theme in 459 ContextThemeWrapper. These self-referencing attributes make sure this is applied as 460 both to the button. --> 461 <item name="android:buttonStyle">@style/SudGlifButton.Secondary</item> 462 <item name="android:theme">@style/SudGlifButton.Secondary</item> 463 <item name="buttonStyle">@style/SudGlifButton.Secondary</item> 464 465 <!-- Values used in styles --> 466 <item name="android:fontFamily" tools:targetApi="jelly_bean">?attr/sudButtonFontFamily</item> 467 <item name="android:minWidth">0dp</item> 468 <item name="android:paddingLeft">@dimen/sud_glif_button_padding</item> 469 <item name="android:paddingRight">@dimen/sud_glif_button_padding</item> 470 <item name="android:textAllCaps" tools:targetApi="ice_cream_sandwich">?attr/sudButtonAllCaps</item> 471 <item name="textAllCaps">?attr/sudButtonAllCaps</item> 472 473 <!-- Values used in themes --> 474 <item name="android:buttonCornerRadius" tools:ignore="NewApi">?attr/sudButtonCornerRadius</item> 475 <item name="android:colorControlHighlight" tools:targetApi="lollipop">@color/sud_flat_button_highlight</item> 476 <item name="colorControlHighlight">@color/sud_flat_button_highlight</item> 477 </style> 478 479 <!-- The start and end paddings are asymmetric because start buttons are borderless buttons 480 which aligns the text label. --> 481 <style name="SudGlifButtonBar"> 482 <item name="android:baselineAligned">false</item> 483 <item name="android:clipChildren">false</item> 484 <item name="android:clipToPadding">false</item> 485 <item name="android:gravity">center_vertical</item> 486 <item name="android:minHeight">@dimen/sud_glif_footer_min_height</item> 487 <item name="android:orientation">horizontal</item> 488 <item name="android:paddingTop">@dimen/sud_glif_footer_padding_vertical</item> 489 <item name="android:paddingBottom">@dimen/sud_glif_footer_padding_vertical</item> 490 <item name="android:paddingEnd" tools:ignore="NewApi">@dimen/sud_glif_button_margin_end</item> 491 <item name="android:paddingLeft">@dimen/sud_glif_button_margin_start</item> 492 <item name="android:paddingRight">@dimen/sud_glif_button_margin_end</item> 493 <item name="android:paddingStart" tools:ignore="NewApi">@dimen/sud_glif_button_margin_start</item> 494 </style> 495 496 <style name="SudGlifButtonBar.Stackable" parent="SudGlifButtonBar"> 497 <item name="android:gravity">center</item> 498 </style> 499 500 <!-- Items styles --> 501 502 <style name="SudItemContainer"> 503 <item name="android:minHeight">?android:attr/listPreferredItemHeight</item> 504 <item name="android:paddingBottom">@dimen/sud_items_padding_vertical</item> 505 <item name="android:paddingEnd" tools:ignore="NewApi">?attr/listPreferredItemPaddingRight</item> 506 <item name="android:paddingLeft">?attr/listPreferredItemPaddingLeft</item> 507 <item name="android:paddingRight">?attr/listPreferredItemPaddingRight</item> 508 <item name="android:paddingStart" tools:ignore="NewApi">?attr/listPreferredItemPaddingLeft</item> 509 <item name="android:paddingTop">@dimen/sud_items_padding_vertical</item> 510 </style> 511 512 <style name="SudItemContainer.Description" parent="SudItemContainer"> 513 <item name="android:paddingTop">@dimen/sud_description_margin_top</item> 514 <item name="android:paddingBottom">@dimen/sud_description_margin_bottom_lists</item> 515 </style> 516 517 <style name="SudItemContainer.Description.Glif" parent="SudItemContainer.Description"> 518 <item name="android:minHeight">0dp</item> 519 <item name="android:paddingTop">@dimen/sud_description_glif_margin_top</item> 520 <item name="android:paddingBottom">@dimen/sud_description_glif_margin_bottom_lists</item> 521 </style> 522 523 <style name="SudItemContainer.Verbose" parent="SudItemContainer"> 524 <item name="android:paddingBottom">@dimen/sud_items_verbose_padding_vertical</item> 525 <item name="android:paddingTop">@dimen/sud_items_verbose_padding_vertical</item> 526 </style> 527 528 <style name="SudItemSummary"> 529 <item name="android:textAppearance">?attr/textAppearanceListItemSmall</item> 530 </style> 531 532 <style name="SudItemTitle"> 533 <item name="android:textAppearance">?attr/textAppearanceListItem</item> 534 </style> 535 536 <style name="SudItemTitle.GlifDescription" parent="SudItemTitle"> 537 <item name="android:gravity">?attr/sudGlifHeaderGravity</item> 538 <item name="android:textAlignment" tools:targetApi="jelly_bean_mr1">gravity</item> 539 </style> 540 541 <style name="SudItemTitle.Verbose" parent="SudItemTitle"> 542 <item name="android:textAppearance">@style/TextAppearance.SudGlifBody</item> 543 </style> 544 545 <style name="SudSwitchStyle"> 546 <item name="android:paddingEnd" tools:ignore="NewApi">@dimen/sud_switch_padding_end</item> 547 <item name="android:paddingLeft">@dimen/sud_switch_padding_start</item> 548 <item name="android:paddingRight">@dimen/sud_switch_padding_end</item> 549 <item name="android:paddingStart" tools:ignore="NewApi">@dimen/sud_switch_padding_start</item> 550 </style> 551 552 <style name="SudSwitchStyle.Divided" parent="SudSwitchStyle"> 553 <item name="android:paddingEnd" tools:ignore="NewApi">?attr/listPreferredItemPaddingRight</item> 554 <item name="android:paddingRight">?attr/listPreferredItemPaddingRight</item> 555 </style> 556 557 <style name="TextAppearance.SudItemSummary" parent="android:TextAppearance"> 558 <item name="android:textSize">16sp</item> 559 <item name="android:textColor">?android:attr/textColorSecondary</item> 560 </style> 561 562 <!-- GLIF layout --> 563 564 <style name="SudGlifHeaderTitle" parent="SudBaseHeaderTitle"> 565 <item name="android:gravity">?attr/sudGlifHeaderGravity</item> 566 <item name="android:layout_marginBottom">@dimen/sud_glif_header_title_margin_bottom</item> 567 <item name="android:layout_marginLeft">?attr/sudMarginSides</item> 568 <item name="android:layout_marginRight">?attr/sudMarginSides</item> 569 <item name="android:layout_marginTop">@dimen/sud_glif_header_title_margin_top</item> 570 <item name="android:fontFamily" tools:targetApi="jelly_bean">@string/sudFontSecondary</item> 571 <item name="android:textAlignment" tools:targetApi="jelly_bean_mr1">gravity</item> 572 <item name="android:textColor">?android:attr/textColorPrimary</item> 573 </style> 574 <style name="SudGlifHeaderContainer"> 575 <item name="android:gravity">?attr/sudGlifHeaderGravity</item> 576 </style> 577 578 <style name="SudGlifIcon"> 579 <item name="android:layout_marginLeft">?attr/sudMarginSides</item> 580 <item name="android:layout_marginRight">?attr/sudMarginSides</item> 581 <item name="android:layout_marginTop">@dimen/sud_glif_margin_top</item> 582 <item name="android:adjustViewBounds">true</item> 583 <item name="android:maxHeight">@dimen/sud_glif_icon_max_height</item> 584 <item name="android:scaleType">centerInside</item> 585 </style> 586 587 <style name="TextAppearance.SudGlifBody" parent="android:TextAppearance"> 588 <item name="android:textSize">14sp</item> 589 <item name="android:textColor">?android:attr/textColorPrimary</item> 590 </style> 591 592 <style name="TextAppearance.SudGlifItemTitle" parent="android:TextAppearance"> 593 <item name="android:textSize">16sp</item> 594 <item name="android:textColor">?android:attr/textColorPrimary</item> 595 </style> 596 597 <style name="TextAppearance.SudGlifItemSummary" parent="android:TextAppearance"> 598 <item name="android:textSize">14sp</item> 599 <item name="android:textColor">?android:attr/textColorSecondary</item> 600 </style> 601 602 <!-- Navigation bar styles --> 603 604 <style name="SudNavBarTheme"> 605 <item name="android:orientation">horizontal</item> 606 <item name="android:layout_alignParentBottom">true</item> 607 <item name="android:background">?attr/sudNavBarBackgroundColor</item> 608 <item name="android:paddingLeft">@dimen/sud_navbar_padding_sides</item> 609 <item name="android:paddingRight">@dimen/sud_navbar_padding_sides</item> 610 <item name="sudNavBarTextColor">?android:attr/textColorPrimary</item> 611 </style> 612 613 <style name="SudNavBarThemeDark" parent="SudNavBarTheme"> 614 <item name="sudNavBarBackgroundColor">@color/sud_navbar_bg_dark</item> 615 <item name="sudNavBarButtonBackground">@drawable/sud_navbar_btn_bg_dark</item> 616 </style> 617 618 <style name="SudNavBarThemeLight" parent="SudNavBarTheme"> 619 <item name="sudNavBarBackgroundColor">@color/sud_navbar_bg_light</item> 620 <item name="sudNavBarButtonBackground">@drawable/sud_navbar_btn_bg_light</item> 621 </style> 622 623 <style name="SudNavBarButtonStyle" parent="@android:style/Widget.Button"> 624 <item name="android:background">?attr/sudNavBarButtonBackground</item> 625 <item name="android:drawablePadding">@dimen/sud_navbar_button_drawable_padding</item> 626 <item name="android:fontFamily" tools:ignore="NewApi">sans-serif</item> 627 <item name="android:minWidth">0dp</item> 628 <item name="android:paddingLeft">@dimen/sud_navbar_button_padding_sides</item> 629 <item name="android:paddingRight">@dimen/sud_navbar_button_padding_sides</item> 630 <item name="android:textAllCaps" tools:ignore="NewApi">true</item> 631 <item name="android:textColor">?attr/sudNavBarTextColor</item> 632 <item name="android:textSize">@dimen/sud_navbar_text_size</item> 633 </style> 634 635 636 <style name="SudEditText" parent="@android:style/Widget.EditText"> 637 <item name="android:minHeight">@dimen/sud_edit_text_min_height</item> 638 </style> 639 640 <style name="SudAlertDialogTheme" parent="Theme.AppCompat.Dialog.Alert"> 641 <item name="android:textAllCaps">false</item> 642 <item name="android:colorBackground">@color/sud_glif_v3_dialog_background_color_dark</item> 643 <item name="colorAccent">@color/sud_color_accent_glif_v3_dark</item> 644 <item name="dialogCornerRadius">@dimen/sud_glif_alert_dialog_corner_radius</item> 645 </style> 646 647 <style name="SudAlertDialogTheme.Light" parent="Theme.AppCompat.Light.Dialog.Alert"> 648 <item name="android:textAllCaps">false</item> 649 <item name="colorAccent">@color/sud_color_accent_glif_v3_light</item> 650 <item name="dialogCornerRadius">@dimen/sud_glif_alert_dialog_corner_radius</item> 651 </style> 652 653</resources> 654