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