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="SuwThemeGlifV2" parent="SuwThemeGlif"> 23 <item name="android:colorBackground">@color/suw_glif_background_color_dark</item> 24 <item name="android:windowLightStatusBar" tools:targetApi="m">false</item> 25 26 <item name="suwBackgroundBaseColor">?android:attr/colorBackground</item> 27 <item name="suwBackgroundPatterned">false</item> 28 <item name="suwDividerInsetEnd">?attr/suwMarginSides</item> 29 <item name="suwDividerInsetStart">?attr/suwMarginSides</item> 30 <item name="suwDividerInsetStartNoIcon">?attr/suwMarginSides</item> 31 <item name="suwGlifHeaderGravity">center_horizontal</item> 32 <item name="suwScrollIndicators">top|bottom</item> 33 <item name="suwEditTextBackgroundColor">@color/suw_glif_edit_text_bg_light_color</item> <!-- TODO: Change color --> 34 <item name="android:editTextStyle">@style/SuwEditText</item> 35 <item name="android:alertDialogTheme" tools:targetApi="honeycomb">@style/SuwAlertDialogTheme</item> 36 </style> 37 38 <style name="SuwThemeGlifV2.Light" parent="SuwThemeGlif.Light"> 39 <item name="android:colorBackground">@color/suw_glif_background_color_light</item> 40 <item name="android:windowLightStatusBar" tools:targetApi="m">true</item> 41 42 <item name="suwBackgroundBaseColor">?android:attr/colorBackground</item> 43 <item name="suwBackgroundPatterned">false</item> 44 <item name="suwDividerInsetEnd">?attr/suwMarginSides</item> 45 <item name="suwDividerInsetStart">?attr/suwMarginSides</item> 46 <item name="suwDividerInsetStartNoIcon">?attr/suwMarginSides</item> 47 <item name="suwGlifHeaderGravity">center_horizontal</item> 48 <item name="suwScrollIndicators">top|bottom</item> 49 <item name="suwEditTextBackgroundColor">@color/suw_glif_edit_text_bg_light_color</item> 50 <item name="android:editTextStyle">@style/SuwEditText</item> 51 <item name="android:alertDialogTheme" tools:targetApi="honeycomb">@style/SuwAlertDialogTheme.Light</item> 52 </style> 53 54 <style name="Animation.SuwWindowAnimation" parent="@android:style/Animation.Activity"> 55 <item name="android:activityOpenEnterAnimation">@anim/suw_slide_next_in</item> 56 <item name="android:activityOpenExitAnimation">@anim/suw_slide_next_out</item> 57 <item name="android:activityCloseEnterAnimation">@anim/suw_slide_back_in</item> 58 <item name="android:activityCloseExitAnimation">@anim/suw_slide_back_out</item> 59 </style> 60 61 <!-- DayNight themes --> 62 <style name="SuwThemeMaterial.DayNight" parent="SuwThemeMaterial.Light" /> 63 <style name="SuwThemeGlif.DayNight" parent="SuwThemeGlif.Light" /> 64 <style name="SuwThemeGlifV2.DayNight" parent="SuwThemeGlifV2.Light" /> 65 <style name="SuwThemeGlifV3.DayNight" parent="SuwThemeGlifV3.Light" /> 66 67 <!-- Content styles --> 68 69 <!-- Ignore UnusedResources: Used by clients --> 70 <style name="SuwContentFrame" tools:ignore="UnusedResources"> 71 <item name="android:clipToPadding">false</item> 72 <item name="android:paddingTop">@dimen/suw_content_frame_padding_top</item> 73 <item name="android:paddingLeft">?attr/suwMarginSides</item> 74 <item name="android:paddingRight">?attr/suwMarginSides</item> 75 <item name="android:paddingBottom">@dimen/suw_content_frame_padding_bottom</item> 76 </style> 77 78 <!-- Ignore UnusedResources: Used by clients --> 79 <style name="SuwDescription" tools:ignore="UnusedResources"> 80 <!-- Before Honeycomb, layout_gravity is needed for FrameLayout to apply the margins --> 81 <item name="android:layout_gravity">top</item> 82 <item name="android:layout_marginBottom">@dimen/suw_description_margin_bottom</item> 83 <item name="android:layout_marginTop">@dimen/suw_description_margin_top</item> 84 <item name="android:lineSpacingExtra">@dimen/suw_description_line_spacing_extra</item> 85 <item name="android:textAppearance">@style/TextAppearance.SuwDescription</item> 86 </style> 87 88 <!-- Ignore UnusedResources: Used by clients --> 89 <style name="SuwDescription.Glif" parent="SuwDescription" tools:ignore="UnusedResources"> 90 <item name="android:layout_marginTop">@dimen/suw_description_glif_margin_top</item> 91 <item name="android:gravity">?attr/suwGlifHeaderGravity</item> 92 <item name="android:textAlignment" tools:targetApi="jelly_bean_mr1">gravity</item> 93 </style> 94 95 <!-- Ignore UnusedResources: Used by clients --> 96 <style name="TextAppearance.SuwDescription.Secondary" 97 parent="TextAppearance.SuwDescription" 98 tools:ignore="UnusedResources"> 99 <item name="android:textColor">?android:attr/textColorSecondary</item> 100 </style> 101 102 <!-- Ignore UnusedResources: Used by clients --> 103 <style name="SuwRadioButton" tools:ignore="UnusedResources"> 104 <item name="android:layout_marginBottom">@dimen/suw_radio_button_margin_bottom</item> 105 <item name="android:layout_marginLeft">@dimen/suw_radio_button_margin_start</item> 106 <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/suw_radio_button_margin_start</item> 107 <item name="android:layout_marginTop">@dimen/suw_radio_button_margin_top</item> 108 <item name="android:lineSpacingExtra">@dimen/suw_radio_button_line_spacing_extra</item> 109 <item name="android:paddingLeft">@dimen/suw_radio_button_padding_start</item> 110 <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_radio_button_padding_start</item> 111 <item name="android:textAppearance">@style/TextAppearance.SuwDescription</item> 112 </style> 113 114 <!-- Ignore UnusedResources: used by clients --> 115 <style name="SuwCheckBox" tools:ignore="UnusedResources"> 116 <item name="android:layout_marginBottom">@dimen/suw_check_box_margin_bottom</item> 117 <item name="android:layout_marginLeft">@dimen/suw_check_box_margin_start</item> 118 <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/suw_check_box_margin_start</item> 119 <item name="android:layout_marginTop">@dimen/suw_check_box_margin_top</item> 120 <item name="android:lineSpacingExtra">@dimen/suw_check_box_line_spacing_extra</item> 121 <item name="android:paddingLeft">@dimen/suw_check_box_padding_start</item> 122 <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_check_box_padding_start</item> 123 <item name="android:textAppearance">@style/TextAppearance.SuwDescription</item> 124 </style> 125 126 <!-- Ignore UnusedResources: used by clients --> 127 <style name="SuwCheckBox.Multiline" parent="SuwCheckBox" tools:ignore="UnusedResources"> 128 <item name="android:gravity">top</item> 129 </style> 130 131 <style name="SuwFillContentLayout"> 132 <item name="android:minWidth">@dimen/suw_content_illustration_min_width</item> 133 <item name="android:minHeight">@dimen/suw_content_illustration_min_height</item> 134 <item name="android:maxWidth">@dimen/suw_content_illustration_max_width</item> 135 <item name="android:maxHeight">@dimen/suw_content_illustration_max_height</item> 136 <item name="android:paddingTop">@dimen/suw_content_illustration_padding_vertical</item> 137 <item name="android:paddingBottom">@dimen/suw_content_illustration_padding_vertical</item> 138 </style> 139 140 <!-- Ignore UnusedResources: used by clients --> 141 <style name="SuwContentIllustration" tools:ignore="UnusedResources"> 142 <item name="android:layout_gravity">center</item> 143 <item name="android:scaleType">fitCenter</item> 144 </style> 145 146 <!-- Card layout (for tablets) --> 147 148 <style name="SuwBaseCardTitle"> 149 <item name="android:ellipsize">end</item> 150 <item name="android:maxLines">2</item> 151 <item name="android:paddingBottom">@dimen/suw_card_title_padding_bottom</item> 152 <item name="android:paddingEnd" tools:ignore="NewApi">@dimen/suw_card_title_padding_end</item> 153 <item name="android:paddingLeft">@dimen/suw_card_title_padding_start</item> 154 <item name="android:paddingRight">@dimen/suw_card_title_padding_end</item> 155 <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_card_title_padding_start</item> 156 <item name="android:paddingTop">@dimen/suw_card_title_padding_top</item> 157 <item name="android:textAppearance">@style/TextAppearance.SuwCardTitle</item> 158 </style> 159 160 <style name="SuwCardTitle" parent="SuwBaseCardTitle" /> 161 162 <!-- GLIF Card layout (for tablets) --> 163 164 <style name="SuwGlifCardContainer"> 165 <item name="android:background">?android:attr/colorBackground</item> 166 <item name="android:elevation" tools:ignore="NewApi">@dimen/suw_glif_card_elevation</item> 167 </style> 168 169 <!-- Header layout (for phones) --> 170 171 <style name="SuwBaseHeaderTitle"> 172 <!-- Before Honeycomb, layout_gravity is needed for FrameLayout to apply the margins --> 173 <item name="android:layout_gravity">top</item> 174 <item name="android:ellipsize">end</item> 175 <item name="android:maxLines">3</item> 176 <item name="android:textSize">@dimen/suw_header_title_size</item> 177 </style> 178 179 <style name="SuwHeaderTitle" parent="SuwBaseHeaderTitle"> 180 <item name="android:layout_marginBottom">@dimen/suw_header_title_margin_bottom</item> 181 <item name="android:layout_marginLeft">?attr/suwMarginSides</item> 182 <item name="android:layout_marginRight">?attr/suwMarginSides</item> 183 <item name="android:lineSpacingExtra">@dimen/suw_header_title_line_spacing_extra</item> 184 <item name="android:paddingBottom">@dimen/suw_header_title_padding_bottom</item> 185 <item name="android:paddingTop">@dimen/suw_header_title_padding_top</item> 186 <item name="android:textColor">@android:color/white</item> 187 </style> 188 189 <!-- Button styles --> 190 191 <style name="SuwButtonItem" /> 192 193 <style name="SuwButtonItem.Colored" parent="SuwGlifButton.Primary" /> 194 195 <!-- Use this style with a Button not a TextView, so that TalkBack will announce it as a 196 button. --> 197 <style name="SuwGlifButton.BaseTertiary" parent="SuwGlifButton.Secondary"> 198 <!-- This style can be applied to a button either as a "style" in XML, or as a theme in 199 ContextThemeWrapper. These self-referencing attributes make sure this is applied as 200 both to the button. --> 201 <item name="android:buttonStyle">@style/SuwGlifButton.Tertiary</item> 202 <item name="android:theme">@style/SuwGlifButton.Tertiary</item> 203 204 <item name="android:fontFamily" tools:targetApi="jelly_bean">sans-serif</item> 205 <item name="android:layout_gravity">?attr/suwGlifHeaderGravity</item> 206 <item name="android:layout_marginLeft">@dimen/suw_glif_negative_button_padding</item> 207 <item name="android:layout_marginRight">@dimen/suw_glif_negative_button_padding</item> 208 <!-- Always lowercase instead of reading attr/suwButtonAllCaps, since this is a tertiary 209 button --> 210 <item name="android:textAllCaps" tools:targetApi="ice_cream_sandwich">false</item> 211 </style> 212 213 <!-- The start and end paddings are asymmetric because start buttons are borderless buttons 214 which aligns the text label. --> 215 <style name="SuwGlifButtonBar"> 216 <item name="android:baselineAligned">false</item> 217 <item name="android:clipChildren">false</item> 218 <item name="android:clipToPadding">false</item> 219 <item name="android:gravity">center_vertical</item> 220 <item name="android:minHeight">@dimen/suw_glif_footer_min_height</item> 221 <item name="android:orientation">horizontal</item> 222 <item name="android:paddingTop">@dimen/suw_glif_footer_padding_vertical</item> 223 <item name="android:paddingBottom">@dimen/suw_glif_footer_padding_vertical</item> 224 <item name="android:paddingEnd" tools:ignore="NewApi">@dimen/suw_glif_button_margin_end</item> 225 <item name="android:paddingLeft">@dimen/suw_glif_button_margin_start</item> 226 <item name="android:paddingRight">@dimen/suw_glif_button_margin_end</item> 227 <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_glif_button_margin_start</item> 228 </style> 229 230 <style name="SuwGlifButtonBar.Stackable" parent="SuwGlifButtonBar"> 231 <item name="android:gravity">center</item> 232 </style> 233 234 <!-- Items styles --> 235 236 <style name="SuwItemContainer.Description" parent="SuwItemContainer"> 237 <item name="android:paddingTop">@dimen/suw_description_margin_top</item> 238 <item name="android:paddingBottom">@dimen/suw_description_margin_bottom_lists</item> 239 </style> 240 241 <style name="SuwItemContainer.Description.Glif" parent="SuwItemContainer.Description"> 242 <item name="android:minHeight">0dp</item> 243 <item name="android:paddingTop">@dimen/suw_description_glif_margin_top</item> 244 <item name="android:paddingBottom">@dimen/suw_description_glif_margin_bottom_lists</item> 245 </style> 246 247 <style name="SuwItemContainer.Verbose" parent="SuwItemContainer"> 248 <item name="android:paddingBottom">@dimen/suw_items_verbose_padding_vertical</item> 249 <item name="android:paddingTop">@dimen/suw_items_verbose_padding_vertical</item> 250 </style> 251 252 <style name="SuwItemTitle.GlifDescription" parent="SuwItemTitle"> 253 <item name="android:gravity">?attr/suwGlifHeaderGravity</item> 254 <item name="android:textAlignment" tools:targetApi="jelly_bean_mr1">gravity</item> 255 </style> 256 257 <style name="SuwItemTitle.Verbose" parent="SuwItemTitle"> 258 <item name="android:textAppearance">@style/TextAppearance.SuwGlifBody</item> 259 </style> 260 261 <style name="TextAppearance.SuwItemSummary" parent="android:TextAppearance"> 262 <item name="android:textSize">16sp</item> 263 <item name="android:textColor">?android:attr/textColorSecondary</item> 264 </style> 265 266 <!-- GLIF layout --> 267 268 <style name="SuwGlifHeaderTitle" parent="SuwBaseHeaderTitle"> 269 <item name="android:gravity">?attr/suwGlifHeaderGravity</item> 270 <item name="android:layout_marginBottom">@dimen/suw_glif_header_title_margin_bottom</item> 271 <item name="android:layout_marginLeft">?attr/suwMarginSides</item> 272 <item name="android:layout_marginRight">?attr/suwMarginSides</item> 273 <item name="android:layout_marginTop">@dimen/suw_glif_header_title_margin_top</item> 274 <item name="android:fontFamily" tools:targetApi="jelly_bean">@string/suwFontSecondary</item> 275 <item name="android:textAlignment" tools:targetApi="jelly_bean_mr1">gravity</item> 276 <item name="android:textColor">?android:attr/textColorPrimary</item> 277 </style> 278 <style name="SuwGlifHeaderContainer"> 279 <item name="android:gravity">?attr/suwGlifHeaderGravity</item> 280 </style> 281 282 <style name="SuwGlifIcon"> 283 <item name="android:layout_marginLeft">?attr/suwMarginSides</item> 284 <item name="android:layout_marginRight">?attr/suwMarginSides</item> 285 <item name="android:layout_marginTop">@dimen/suw_glif_margin_top</item> 286 <item name="android:adjustViewBounds">true</item> 287 <item name="android:maxHeight">@dimen/suw_glif_icon_max_height</item> 288 <item name="android:scaleType">centerInside</item> 289 </style> 290 291 <style name="TextAppearance.SuwGlifBody" parent="android:TextAppearance"> 292 <item name="android:textSize">14sp</item> 293 <item name="android:textColor">?android:attr/textColorPrimary</item> 294 </style> 295 296 <style name="TextAppearance.SuwGlifItemTitle" parent="android:TextAppearance"> 297 <item name="android:textSize">16sp</item> 298 <item name="android:textColor">?android:attr/textColorPrimary</item> 299 </style> 300 301 <style name="TextAppearance.SuwGlifItemSummary" parent="android:TextAppearance"> 302 <item name="android:textSize">14sp</item> 303 <item name="android:textColor">?android:attr/textColorSecondary</item> 304 </style> 305 306 <!-- Navigation bar styles --> 307 308 <style name="SuwNavBarTheme"> 309 <item name="android:orientation">horizontal</item> 310 <item name="android:layout_alignParentBottom">true</item> 311 <item name="android:background">?attr/suwNavBarBackgroundColor</item> 312 <item name="android:paddingLeft">@dimen/suw_navbar_padding_sides</item> 313 <item name="android:paddingRight">@dimen/suw_navbar_padding_sides</item> 314 <item name="suwNavBarTextColor">?android:attr/textColorPrimary</item> 315 </style> 316 317 318 <style name="SuwEditText" parent="@android:style/Widget.EditText"> 319 <item name="android:minHeight">@dimen/suw_edit_text_min_height</item> 320 </style> 321 322</resources> 323