1<!-- 2 ~ Copyright (C) 2021 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16 17<resources 18 xmlns:android="http://schemas.android.com/apk/res/android"> 19 <!-- START SAFETY CENTER QUICK SETTINGS PAGE --> 20 21 <style name="SafetyCenterQsContainer" 22 parent="android:Widget.DeviceDefault"> 23 <item name="android:layout_width">match_parent</item> 24 <item name="android:layout_height">wrap_content</item> 25 <item name="android:layout_gravity">center_horizontal</item> 26 <item name="android:clipChildren">false</item> 27 </style> 28 29 <style name="SafetyCenterQsBody"> 30 <item name="android:layout_width">match_parent</item> 31 <item name="android:layout_height">wrap_content</item> 32 <item name="android:orientation">vertical</item> 33 <item name="android:layout_gravity">center_horizontal</item> 34 </style> 35 36 <style name="SafetyCenterQsBaseTextContainer"> 37 <item name="android:hyphenationFrequency">normalFast</item> 38 </style> 39 40 <style name="SafetyCenterLinkText" 41 parent="SafetyCenterQsBaseTextContainer"> 42 <item name="android:textDirection">locale</item> 43 <item name="android:textAppearance">?android:attr/textAppearanceSmall</item> 44 </style> 45 46 <style name="SafetyCenterQsCloseButton" 47 parent="android:Widget.DeviceDefault"> 48 <item name="android:layout_width">24dp</item> 49 <item name="android:layout_height">24dp</item> 50 <item name="android:layout_gravity">start</item> 51 <item name="android:layout_marginBottom">@dimen/sc_spacing_xxxlarge</item> 52 <item name="android:layout_marginStart">@dimen/sc_list_margin</item> 53 <item name="android:layout_marginTop">@dimen/sc_spacing_xxxlarge</item> 54 <item name="android:tint">?android:attr/textColorPrimary</item> 55 </style> 56 57 <style name="SafetyCenterQsSectionTitle" 58 parent="SafetyCenterQsBaseTextContainer"> 59 <item name="android:layout_width">wrap_content</item> 60 <item name="android:layout_height">wrap_content</item> 61 <item name="android:layout_marginTop">@dimen/sc_spacing_xxlarge</item> 62 <item name="android:textColor">?attr/colorAccentPrimary</item> 63 <item name="android:paddingStart">@dimen/sc_spacing_xxxlarge</item> 64 <item name="android:paddingEnd">@dimen/sc_list_margin</item> 65 <item name="android:textSize">14sp</item> 66 <item name="android:lineHeight">24sp</item> 67 <item name="android:textAlignment">viewStart</item> 68 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Medium</item> 69 </style> 70 71 <style name="SafetyCenterQsPermissionUsage"> 72 <item name="android:layout_width">match_parent</item> 73 <item name="android:layout_height">wrap_content</item> 74 <item name="android:orientation">vertical</item> 75 <item name="android:paddingStart">@dimen/sc_list_margin</item> 76 <item name="android:paddingEnd">@dimen/sc_list_margin</item> 77 <item name="android:layout_marginBottom">@dimen/sc_spacing_xsmall</item> 78 </style> 79 80 <style name="SafetyCenterQsPreferences"> 81 <item name="android:layout_width">match_parent</item> 82 <item name="android:layout_height">wrap_content</item> 83 <item name="android:layout_marginTop">@dimen/sc_spacing_xsmall</item> 84 </style> 85 86 <style name="SafetyCenterQsToggleContainer"> 87 <item name="android:layout_width">match_parent</item> 88 <item name="android:layout_height">wrap_content</item> 89 <item name="android:gravity">center_vertical</item> 90 <item name="android:orientation">vertical</item> 91 <item name="android:layout_marginStart">@dimen/sc_list_margin</item> 92 <item name="android:layout_marginEnd">@dimen/sc_list_margin</item> 93 <item name="android:layout_marginTop">@dimen/sc_spacing_large</item> 94 <item name="android:layout_marginBottom">@dimen/sc_spacing_large</item> 95 <item name="android:paddingStart">@dimen/sc_spacing_small</item> 96 <item name="android:paddingEnd">@dimen/sc_spacing_small</item> 97 <item name="android:paddingTop">@dimen/sc_spacing_small</item> 98 <item name="android:paddingBottom">@dimen/sc_spacing_small</item> 99 </style> 100 101 <style name="SafetyCenterQsToggleRow"> 102 <item name="android:layout_width">match_parent</item> 103 <item name="android:layout_height">wrap_content</item> 104 <item name="android:gravity">center_horizontal</item> 105 <item name="android:orientation">horizontal</item> 106 </style> 107 108 <style name="SafetyCenterQsToggleButton"> 109 <item name="android:background">@drawable/safety_center_sensor_toggle_enabled</item> 110 <item name="android:layout_width">0dp</item> 111 <item name="android:layout_height">80dp</item> 112 <item name="android:orientation">horizontal</item> 113 <item name="android:gravity">center_vertical</item> 114 <item name="android:layout_weight">0.5</item> 115 <item name="android:layout_marginStart">@dimen/sc_spacing_xxsmall</item> 116 <item name="android:layout_marginEnd">@dimen/sc_spacing_xxsmall</item> 117 <item name="android:layout_marginTop">@dimen/sc_spacing_xxsmall</item> 118 <item name="android:layout_marginBottom">@dimen/sc_spacing_xxsmall</item> 119 </style> 120 121 <style name="SafetyCenterQsToggleTextContainer"> 122 <item name="android:layout_width">0dp</item> 123 <item name="android:layout_height">wrap_content</item> 124 <item name="android:gravity">start|center_vertical</item> 125 <item name="android:layout_gravity">center_vertical</item> 126 <item name="android:orientation">vertical</item> 127 <item name="android:layout_weight">1</item> 128 </style> 129 130 <style name="SafetyCenterQsToggleText" 131 parent="SafetyCenterQsBaseTextContainer"> 132 <item name="android:gravity">center</item> 133 <item name="android:layout_width">wrap_content</item> 134 <item name="android:layout_height">wrap_content</item> 135 <item name="android:ellipsize">marquee</item> 136 <item name="android:marqueeRepeatLimit">marquee_forever</item> 137 <item name="android:focusable">false</item> 138 <item name="android:focusableInTouchMode">false</item> 139 <item name="android:scrollHorizontally">true</item> 140 <item name="android:singleLine">true</item> 141 <item name="android:layout_marginEnd">@dimen/sc_spacing_large</item> 142 <item name="android:textAlignment">viewStart</item> 143 </style> 144 145 <style name="SafetyCenterQsToggleText.Title"> 146 <item name="android:textColor">?android:attr/textColorPrimaryInverse</item> 147 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Medium</item> 148 <item name="android:lineHeight">@dimen/sc_line_height_medium</item> 149 </style> 150 151 <style name="SafetyCenterQsToggleText.Subtitle"> 152 <item name="android:textColor">?android:attr/textColorSecondary</item> 153 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Body</item> 154 <item name="android:lineHeight">@dimen/sc_line_height_medium</item> 155 </style> 156 157 <style name="SafetyCenterQsToggleArrow"> 158 <item name="android:layout_width">20dp</item> 159 <item name="android:layout_height">20dp</item> 160 <item name="android:gravity">center</item> 161 <item name="android:layout_gravity">end|center_vertical</item> 162 <item name="android:layout_marginEnd">@dimen/sc_spacing_small</item> 163 </style> 164 165 <style name="SafetyCenterQsToggleIcon"> 166 <item name="android:layout_width">wrap_content</item> 167 <item name="android:layout_height">wrap_content</item> 168 <item name="android:layout_marginStart">@dimen/sc_spacing_large</item> 169 <item name="android:layout_marginEnd">10dp</item> 170 <item name="android:layout_gravity">start|center_vertical</item> 171 <item name="android:adjustViewBounds">true</item> 172 <item name="android:scaleType">fitCenter</item> 173 <item name="android:maxWidth">20dp</item> 174 <item name="android:maxHeight">20dp</item> 175 </style> 176 177 <style name="SafetyCenterIndicatorCardView"> 178 <item name="android:layout_width">match_parent</item> 179 <item name="android:layout_height">wrap_content</item> 180 <item name="cardCornerRadius">@dimen/sc_card_corner_radius_large</item> 181 <item name="cardElevation">0dp</item> 182 <item name="cardBackgroundColor">?attr/colorSurface</item> 183 <item name="android:layout_marginTop">@dimen/sc_spacing_large</item> 184 <item name="android:clickable">true</item> 185 <item name="android:foreground">?android:attr/selectableItemBackground</item> 186 </style> 187 188 <style name="SafetyCenterIndicatorImageView"> 189 <item name="android:layout_width">wrap_content</item> 190 <item name="android:layout_height">wrap_content</item> 191 <item name="android:layout_marginStart">@dimen/sc_spacing_xxxlarge</item> 192 <item name="android:layout_centerVertical">true</item> 193 <item name="android:clickable">false</item> 194 </style> 195 196 <style name="SafetyCenterIndicatorTitleText" 197 parent="SafetyCenterQsBaseTextContainer"> 198 <item name="android:layout_width">0dp</item> 199 <item name="android:layout_marginStart">@dimen/sc_spacing_large</item> 200 <item name="android:layout_height">wrap_content</item> 201 <item name="android:layout_marginTop">@dimen/sc_spacing_xxxlarge</item> 202 <item name="android:textAlignment">viewStart</item> 203 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Medium</item> 204 <item name="android:lineHeight">@dimen/sc_line_height_medium</item> 205 </style> 206 207 <style name="SafetyCenterIndicatorLabelText" 208 parent="SafetyCenterQsBaseTextContainer"> 209 <item name="android:layout_width">0dp</item> 210 <item name="android:layout_height">wrap_content</item> 211 <item name="android:layout_marginTop">@dimen/sc_spacing_xxxsmall</item> 212 <item name="android:layout_marginBottom">@dimen/sc_spacing_xxxlarge</item> 213 <item name="android:textAlignment">viewStart</item> 214 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Body</item> 215 <item name="android:lineHeight">@dimen/sc_line_height_medium</item> 216 </style> 217 218 <style name="SafetyCenterIndicatorExpandView"> 219 <item name="android:layout_width">wrap_content</item> 220 <item name="android:layout_height">wrap_content</item> 221 <item name="android:layout_marginEnd">@dimen/sc_spacing_xxxlarge</item> 222 </style> 223 224 <style name="SafetyCenterIndicatorActionButton" 225 parent="@style/Widget.MaterialComponents.Button.OutlinedButton"> 226 <item name="android:layout_width">0dp</item> 227 <item name="android:layout_height">wrap_content</item> 228 <item name="android:layout_marginStart">@dimen/sc_spacing_xxxlarge</item> 229 <item name="android:layout_marginEnd">@dimen/sc_spacing_xxxlarge</item> 230 <item name="android:textColor">?android:attr/textColorPrimary</item> 231 <item name="android:paddingTop">18dp</item> 232 <item name="android:paddingBottom">18dp</item> 233 <item name="android:paddingStart">24dp</item> 234 <item name="android:paddingEnd">24dp</item> 235 <item name="android:ellipsize">end</item> 236 <item name="android:maxLines">3</item> 237 <item name="android:theme">@style/Theme.MaterialComponents</item> 238 <item name="android:insetTop">0dp</item> 239 <item name="android:insetBottom">0dp</item> 240 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.ActionButton</item> 241 <item name="android:hyphenationFrequency">normalFast</item> 242 <item name="cornerRadius">12dp</item> 243 <item name="rippleColor">?android:colorControlHighlight</item> 244 </style> 245 246 <style name="SafetyCenterIndicatorSecondaryActionButton" 247 parent="@style/SafetyCenterIndicatorActionButton"> 248 <item name="android:layout_marginBottom">@dimen/sc_spacing_xxxlarge</item> 249 <item name="android:layout_marginTop">@dimen/sc_spacing_large</item> 250 </style> 251 252 <style name="SafetyCenterIndicatorForeground"> 253 <item name="android:clickable">true</item> 254 <item name="android:foreground">?android:attr/selectableItemBackground</item> 255 </style> 256 257 <!-- END SAFETY CENTER QUICK SETTINGS PAGE --> 258 259 <!-- START SAFETY CENTER SETTINGS PAGE --> 260 261 <style name="TextAppearance.SafetyCenter.Headline" 262 parent="@android:style/TextAppearance.DeviceDefault.Headline" /> 263 264 <style name="TextAppearance.SafetyCenter.Headline.Status"> 265 <item name="android:textSize">22sp</item> 266 </style> 267 <style name="TextAppearance.SafetyCenter.Headline.Issue"> 268 <item name="android:textSize">20sp</item> 269 </style> 270 <style name="TextAppearance.SafetyCenter.Headline.Entry"> 271 <item name="android:textSize">20sp</item> 272 </style> 273 274 <style name="TextAppearance.SafetyCenter.Body" 275 parent="@android:style/TextAppearance.DeviceDefault.Small"> 276 <item name="android:textSize">14sp</item> 277 <item name="android:textColor">?android:attr/textColorSecondary</item> 278 </style> 279 280 <style name="TextAppearance.SafetyCenter.IssueAttribution" 281 parent="TextAppearance.SafetyCenter.Body"> 282 <item name="android:textSize">12sp</item> 283 </style> 284 285 <style name="TextAppearance.SafetyCenter.Medium" 286 parent="@android:style/TextAppearance.DeviceDefault.Medium"> 287 <item name="android:textSize">14sp</item> 288 </style> 289 290 <style name="TextAppearance.SafetyCenter.IssueSubtitle" 291 parent="TextAppearance.SafetyCenter.Medium"> 292 <item name="android:textSize">16sp</item> 293 <item name="android:textColor">?android:attr/textColorPrimary</item> 294 </style> 295 296 <style name="TextAppearance.SafetyCenter.ActionButton" 297 parent="TextAppearance.SafetyCenter.Medium"> 298 <item name="android:capitalize">sentences</item> 299 </style> 300 301 <style name="TextAppearance.SafetyCenter.ActionButton.Secondary"> 302 <item name="android:textColor">?attr/textColorScSecondaryActionButton</item> 303 </style> 304 305 <style name="SafetyCenterBaseTextContainer"> 306 <item name="android:hyphenationFrequency">normalFast</item> 307 </style> 308 309 <style name="SafetyCenterBaseTextWidget" 310 parent="android:Widget.DeviceDefault"> 311 <item name="android:hyphenationFrequency">normalFast</item> 312 </style> 313 314 <style name="SafetyCenterCard" 315 parent="android:Widget.DeviceDefault"> 316 <item name="android:paddingStart">@dimen/sc_spacing_xxxlarge</item> 317 <item name="android:paddingEnd">@dimen/sc_spacing_xxxlarge</item> 318 <item name="android:paddingTop">@dimen/sc_spacing_xxxlarge</item> 319 <item name="android:paddingBottom">@dimen/sc_card_margin_bottom</item> 320 <item name="android:layout_marginStart">@dimen/sc_spacing_large</item> 321 <item name="android:layout_marginEnd">@dimen/sc_spacing_large</item> 322 <item name="android:background">@drawable/safety_center_card_background</item> 323 </style> 324 325 <style name="SafetyCenterActionButton" 326 parent="@style/Widget.MaterialComponents.Button.UnelevatedButton"> 327 <item name="android:theme">?attr/scActionButtonTheme</item> 328 <item name="android:minHeight">56dp</item> 329 <item name="android:paddingStart">@dimen/sc_button_horizontal_padding_small_screen</item> 330 <item name="android:paddingEnd">@dimen/sc_button_horizontal_padding_small_screen</item> 331 <item name="android:paddingTop">@dimen/sc_spacing_xlarge</item> 332 <item name="android:paddingBottom">@dimen/sc_spacing_xlarge</item> 333 <item name="android:insetTop">0dp</item> 334 <item name="android:insetBottom">0dp</item> 335 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.ActionButton</item> 336 <item name="android:hyphenationFrequency">normalFast</item> 337 <item name="android:textColor">?attr/textColorScActionButton</item> 338 <item name="android:maxLines">3</item> 339 <item name="android:ellipsize">end</item> 340 <item name="cornerRadius">@dimen/sc_button_corner_radius</item> 341 <item name="rippleColor">?android:colorControlHighlight</item> 342 </style> 343 <style name="SafetyCenterActionButton.Fixed" /> 344 <style name="SafetyCenterActionButton.Responsive" /> 345 346 <style name="SecondarySafetyCenterActionButton" 347 parent="@style/Widget.MaterialComponents.Button.OutlinedButton"> 348 <item name="android:theme">?attr/scActionButtonTheme</item> 349 <item name="android:minHeight">56dp</item> 350 <item name="android:paddingStart">@dimen/sc_button_horizontal_padding_small_screen</item> 351 <item name="android:paddingEnd">@dimen/sc_button_horizontal_padding_small_screen</item> 352 <item name="android:paddingTop">@dimen/sc_spacing_xlarge</item> 353 <item name="android:paddingBottom">@dimen/sc_spacing_xlarge</item> 354 <item name="android:insetTop">0dp</item> 355 <item name="android:insetBottom">0dp</item> 356 <item name="android:textAppearance"> 357 @style/TextAppearance.SafetyCenter.ActionButton.Secondary 358 </item> 359 <item name="android:hyphenationFrequency">normalFast</item> 360 <item name="android:textColor">?attr/textColorScSecondaryActionButton</item> 361 <item name="android:maxLines">3</item> 362 <item name="android:ellipsize">end</item> 363 <item name="cornerRadius">@dimen/sc_button_corner_radius</item> 364 <item name="rippleColor">?android:colorControlHighlight</item> 365 </style> 366 <style name="SecondarySafetyCenterActionButton.Fixed" /> 367 <style name="SecondarySafetyCenterActionButton.Responsive" /> 368 369 <!-- START SAFETY STATUS CARD --> 370 <style name="SafetyCenterCard.Status"> 371 <item name="android:layout_width">match_parent</item> 372 <item name="android:layout_height">wrap_content</item> 373 </style> 374 375 <style name="SafetyCenterStatusImage" parent="android:Widget.DeviceDefault"> 376 <item name="android:layout_width">56dp</item> 377 <item name="android:layout_height">56dp</item> 378 <item name="layout_constraintTop_toTopOf">parent</item> 379 <item name="layout_constraintBottom_toBottomOf">@id/status_title_and_summary</item> 380 <item name="layout_constraintStart_toStartOf">parent</item> 381 <item name="layout_constraintEnd_toStartOf">@id/status_title_and_summary</item> 382 <item name="android:scaleType">centerInside</item> 383 <item name="android:gravity">center</item> 384 </style> 385 386 <style name="SafetyCenterStatusTitleAndSummaryContainer" parent="android:Widget.DeviceDefault"> 387 <item name="android:layout_width">0dp</item> 388 <item name="android:layout_height">wrap_content</item> 389 <item name="android:orientation">vertical</item> 390 <item name="android:layout_marginTop">@dimen/sc_spacing_xxsmall</item> 391 <item name="android:layout_marginStart">@dimen/sc_spacing_large</item> 392 <item name="android:layout_marginEnd">@dimen/sc_spacing_xxxlarge</item> 393 <item name="layout_constraintStart_toEndOf">@id/status_image</item> 394 <item name="layout_constraintEnd_toEndOf">parent</item> 395 <item name="layout_constraintTop_toTopOf">parent</item> 396 </style> 397 398 <style name="SafetyCenterStatusTitleAndSummaryContainer.Fixed" /> 399 <style name="SafetyCenterStatusTitleAndSummaryContainer.Responsive" /> 400 401 <style name="SafetyCenterStatusTitle" 402 parent="SafetyCenterBaseTextWidget"> 403 <item name="android:layout_width">wrap_content</item> 404 <item name="android:layout_height">wrap_content</item> 405 <item name="android:textAppearance"> 406 @style/TextAppearance.SafetyCenter.Headline.Status 407 </item> 408 <item name="android:lineHeight">@dimen/sc_line_height_xlarge</item> 409 </style> 410 411 <style name="SafetyCenterStatusSummary" 412 parent="SafetyCenterBaseTextWidget"> 413 <item name="android:layout_width">wrap_content</item> 414 <item name="android:layout_height">wrap_content</item> 415 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Body</item> 416 <item name="android:lineHeight">@dimen/sc_line_height_medium</item> 417 </style> 418 419 <style name="SafetyCenterStatusButton" parent="SafetyCenterActionButton"> 420 <item name="android:layout_width">match_parent</item> 421 <item name="android:layout_height">wrap_content</item> 422 <item name="layout_constraintTop_toBottomOf">@id/status_title_and_summary</item> 423 <item name="layout_constraintBottom_toBottomOf">parent</item> 424 <item name="layout_constraintStart_toStartOf">parent</item> 425 <item name="android:layout_marginTop">@dimen/sc_spacing_xxxlarge</item> 426 <item name="backgroundTint">@color/safety_center_button_info</item> 427 </style> 428 429 <style name="SafetyCenterStatusButton.Fixed" /> 430 <style name="SafetyCenterStatusButton.Responsive" /> 431 432 <!-- END SAFETY STATUS CARD --> 433 434 <style name="SafetyCenterCard.Issue"> 435 <item name="android:orientation">vertical</item> 436 <item name="android:layout_width">match_parent</item> 437 <item name="android:layout_height">wrap_content</item> 438 <item name="android:layout_marginBottom">0dp</item> 439 </style> 440 441 <style name="SafetyCenterIssueDismiss" 442 parent="android:Widget.DeviceDefault.ImageButton"> 443 <item name="android:background">@android:color/transparent</item> 444 <item name="android:layout_width">wrap_content</item> 445 <item name="android:layout_height">wrap_content</item> 446 <item name="layout_constraintTop_toTopOf">parent</item> 447 <item name="layout_constraintEnd_toEndOf">parent</item> 448 </style> 449 450 <style name="SafetyCenterIssueAttributionTitle" 451 parent="SafetyCenterBaseTextContainer"> 452 <item name="android:textAppearance"> 453 @style/TextAppearance.SafetyCenter.IssueAttribution 454 </item> 455 <item name="android:lineHeight">@dimen/sc_line_height_small</item> 456 <item name="android:layout_width">0dp</item> 457 <item name="android:layout_height">wrap_content</item> 458 <item name="layout_constraintTop_toTopOf">parent</item> 459 <item name="layout_constraintBottom_toTopOf">@id/issue_card_title</item> 460 <item name="layout_constraintStart_toStartOf">parent</item> 461 <item name="layout_constraintEnd_toStartOf">@id/issue_card_dismiss_btn</item> 462 <item name="android:layout_marginBottom">@dimen/sc_spacing_medium</item> 463 <item name="android:layout_marginEnd">@dimen/sc_spacing_xxxlarge</item> 464 </style> 465 466 <style name="SafetyCenterIssueTitle" 467 parent="SafetyCenterBaseTextContainer"> 468 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Headline.Issue</item> 469 <item name="android:lineHeight">@dimen/sc_line_height_large</item> 470 <item name="android:layout_width">0dp</item> 471 <item name="android:layout_height">wrap_content</item> 472 <item name="layout_constraintTop_toBottomOf">@id/issue_card_attribution_title</item> 473 <item name="layout_constraintBottom_toTopOf">@id/issue_card_subtitle</item> 474 <item name="layout_constraintStart_toStartOf">parent</item> 475 <item name="layout_constraintEnd_toStartOf">@id/issue_card_dismiss_btn</item> 476 <item name="android:layout_marginEnd">@dimen/sc_spacing_xxxlarge</item> 477 <item name="layout_constraintHorizontal_bias">0</item> 478 <item name="layout_goneMarginEnd">0dp</item> 479 </style> 480 481 <style name="SafetyCenterIssueSubtitle" 482 parent="SafetyCenterBaseTextContainer"> 483 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.IssueSubtitle</item> 484 <item name="android:lineHeight">@dimen/sc_line_height_large</item> 485 <item name="android:layout_height">wrap_content</item> 486 <item name="android:layout_width">wrap_content</item> 487 <item name="layout_constraintStart_toStartOf">@id/issue_card_title</item> 488 <item name="layout_constraintTop_toBottomOf">@id/issue_card_title</item> 489 <item name="layout_constraintBottom_toTopOf">@id/issue_card_summary</item> 490 <item name="android:layout_marginTop">@dimen/sc_spacing_xxsmall</item> 491 </style> 492 493 <style name="SafetyCenterIssueSummary" 494 parent="SafetyCenterBaseTextContainer"> 495 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Body</item> 496 <item name="android:lineHeight">@dimen/sc_line_height_medium</item> 497 <item name="android:layout_height">wrap_content</item> 498 <item name="android:layout_width">wrap_content</item> 499 <item name="layout_constraintStart_toStartOf">@id/issue_card_title</item> 500 <item name="layout_constraintTop_toBottomOf">@id/issue_card_subtitle</item> 501 <item name="layout_constraintBottom_toTopOf">@id/issue_card_action_button_list</item> 502 <item name="android:layout_marginTop">@dimen/sc_spacing_large</item> 503 <!-- Use a smaller margin when there's no subtitle --> 504 <item name="layout_goneMarginTop">@dimen/sc_spacing_medium</item> 505 </style> 506 507 <style name="SafetyCenterIssueActionButtonList" 508 parent="android:Widget.DeviceDefault"> 509 <item name="android:layout_marginTop">@dimen/sc_spacing_xxlarge</item> 510 <item name="android:layout_height">wrap_content</item> 511 <item name="android:layout_width">0dp</item> 512 <item name="android:orientation">vertical</item> 513 <item name="layout_constraintTop_toBottomOf">@id/issue_card_summary</item> 514 <item name="layout_constraintStart_toStartOf">parent</item> 515 <item name="layout_constraintEnd_toEndOf">parent</item> 516 </style> 517 518 <style name="SafetyCenterIssueSafetyProtectionSection"> 519 <item name="android:gravity">center</item> 520 <item name="android:layout_height">wrap_content</item> 521 <item name="android:layout_width">0dp</item> 522 <item name="layout_constraintTop_toBottomOf">@id/issue_card_action_button_list</item> 523 <item name="layout_constraintStart_toStartOf">parent</item> 524 <item name="layout_constraintEnd_toEndOf">parent</item> 525 <item name="android:paddingTop">@dimen/sc_spacing_xxlarge</item> 526 <item name="android:paddingBottom">@dimen/sc_spacing_xxlarge</item> 527 </style> 528 529 <style name="SafetyCenterIssueCardResolvedImage" parent="android:Widget.DeviceDefault"> 530 <item name="android:layout_width">0dp</item> 531 <item name="android:layout_height">0dp</item> 532 <item name="android:gravity">center</item> 533 <item name="layout_constraintWidth_default">wrap</item> 534 <item name="layout_constraintHeight_default">wrap</item> 535 <item name="layout_constraintWidth_max">112dp</item> 536 <item name="layout_constraintHeight_max">112dp</item> 537 <item name="layout_constraintWidth_min">84dp</item> 538 <item name="layout_constraintHeight_min">84dp</item> 539 <item name="layout_constraintTop_toTopOf">parent</item> 540 <item name="layout_constraintBottom_toTopOf">@id/resolved_issue_text</item> 541 <item name="layout_constraintStart_toStartOf">parent</item> 542 <item name="layout_constraintEnd_toEndOf">parent</item> 543 <item name="layout_constraintVertical_chainStyle">packed</item> 544 </style> 545 546 <style name="SafetyCenterIssueCardResolvedTitle" 547 parent="SafetyCenterBaseTextContainer"> 548 <item name="android:textColor">?android:attr/textColorPrimary</item> 549 <item name="android:textSize">16sp</item> 550 <item name="android:lineHeight">24sp</item> 551 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Medium</item> 552 <item name="android:paddingTop">@dimen/sc_spacing_large</item> 553 <item name="android:gravity">center</item> 554 <item name="android:layout_width">wrap_content</item> 555 <item name="android:layout_height">wrap_content</item> 556 <item name="layout_constraintTop_toBottomOf">@id/resolved_issue_image</item> 557 <item name="layout_constraintBottom_toBottomOf">parent</item> 558 <item name="layout_constraintStart_toStartOf">parent</item> 559 <item name="layout_constraintEnd_toEndOf">parent</item> 560 </style> 561 562 <style name="SafetyCenterMoreIssuesCollapsed" 563 parent="SafetyCenterCard.Issue"> 564 <item name="android:layout_marginTop">@dimen/sc_spacing_xlarge</item> 565 <item name="android:paddingVertical">@dimen/sc_spacing_xlarge</item> 566 <item name="android:background">@drawable/safety_center_more_issues_card_background</item> 567 </style> 568 569 <style name="SafetyCenterMoreIssuesIcon" 570 parent="android:Widget.DeviceDefault"> 571 <item name="android:layout_height">20dp</item> 572 <item name="android:layout_width">20dp</item> 573 </style> 574 575 <style name="SafetyCenterMoreIssuesTitle" 576 parent="SafetyCenterBaseTextContainer"> 577 <item name="android:textAppearance">@style/TextAppearance.Material3.LabelLarge</item> 578 <item name="android:textColor">?android:attr/textColorPrimary</item> 579 <item name="android:layout_height">wrap_content</item> 580 <item name="android:layout_width">0dp</item> 581 <item name="android:layout_marginStart">@dimen/sc_spacing_xxlarge</item> 582 <item name="android:layout_marginEnd">@dimen/sc_spacing_xxlarge</item> 583 <item name="android:maxLines">2</item> 584 <item name="android:ellipsize">end</item> 585 <item name="layout_constraintHorizontal_bias">0</item> 586 <item name="layout_goneMarginStart">0dp</item> 587 </style> 588 589 <style name="SafetyCenterMoreIssuesCounter" 590 parent="android:Widget.DeviceDefault"> 591 <item name="android:layout_height">0dp</item> 592 <item name="android:layout_width">0dp</item> 593 <item name="android:background">@drawable/safety_center_card_widget_background</item> 594 </style> 595 596 <style name="SafetyCenterMoreIssuesWidgetTitle" 597 parent="SafetyCenterBaseTextContainer"> 598 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Body</item> 599 <item name="android:textColor">?android:attr/textColorPrimary</item> 600 <item name="android:paddingStart">@dimen/sc_spacing_xsmall</item> 601 <item name="android:layout_height">wrap_content</item> 602 <item name="android:layout_width">wrap_content</item> 603 <item name="android:layout_marginEnd">@dimen/sc_spacing_xxxsmall</item> 604 <item name="android:maxLines">1</item> 605 </style> 606 607 <style name="SafetyCenterMoreIssuesWidgetIcon" 608 parent="android:Widget.DeviceDefault"> 609 <item name="android:layout_height">16dp</item> 610 <item name="android:layout_width">16dp</item> 611 <item name="android:scaleType">fitCenter</item> 612 <item name="android:layout_marginEnd">@dimen/sc_spacing_xsmall</item> 613 </style> 614 615 <style name="SafetyCenterEntry" 616 parent="android:Widget.DeviceDefault"> 617 <item name="android:layout_width">match_parent</item> 618 <item name="android:layout_height">wrap_content</item> 619 <item name="android:layout_marginStart">@dimen/sc_spacing_large</item> 620 <item name="android:layout_marginEnd">@dimen/sc_spacing_large</item> 621 <item name="android:paddingEnd">@dimen/sc_entry_padding_end</item> 622 <item name="android:paddingTop">@dimen/sc_spacing_large</item> 623 <item name="android:paddingBottom">@dimen/sc_spacing_large</item> 624 <item name="android:baselineAligned">false</item> 625 <item name="android:minHeight">?android:attr/listPreferredItemHeight</item> 626 <item name="android:gravity">center_vertical</item> 627 <item name="android:orientation">horizontal</item> 628 </style> 629 630 <style name="SafetyCenterEntryDivider" 631 parent="android:Widget.DeviceDefault"> 632 <item name="android:layout_width">1dp</item> 633 <item name="android:layout_height">28dp</item> 634 <item name="android:background">?android:attr/textColorSecondary</item> 635 </style> 636 637 <style name="SafetyCenterEntryWidgetFrame" 638 parent="android:Widget.DeviceDefault"> 639 <item name="android:layout_width">wrap_content</item> 640 <item name="android:layout_height">match_parent</item> 641 <item name="android:gravity">center_vertical</item> 642 <item name="android:orientation">horizontal</item> 643 </style> 644 645 <style name="SafetyCenterEntryIconFrame" 646 parent="android:Widget.DeviceDefault"> 647 <item name="android:layout_width">wrap_content</item> 648 <item name="android:layout_height">match_parent</item> 649 <item name="android:paddingStart">@dimen/sc_spacing_xxxlarge</item> 650 <item name="android:paddingEnd">@dimen/sc_spacing_xxlarge</item> 651 </style> 652 653 <style name="SafetyCenterEntryIcon" 654 parent="android:Widget.DeviceDefault"> 655 <item name="android:layout_width">20dp</item> 656 <item name="android:layout_height">20dp</item> 657 <item name="android:layout_gravity">center</item> 658 </style> 659 660 <style name="SafetyCenterEntryEmptySpace" 661 parent="android:Widget.DeviceDefault"> 662 <item name="android:layout_width">@dimen/sc_spacing_xxxlarge</item> 663 <item name="android:layout_height">match_parent</item> 664 </style> 665 666 <style name="SafetyCenterEntryTextContainer" 667 parent="android:Widget.DeviceDefault"> 668 <item name="android:layout_width">0dp</item> 669 <item name="android:layout_height">match_parent</item> 670 <item name="android:layout_weight">1</item> 671 <item name="android:orientation">vertical</item> 672 </style> 673 674 <style name="SafetyCenterEntryTitle" 675 parent="SafetyCenterBaseTextWidget"> 676 <item name="android:layout_width">wrap_content</item> 677 <item name="android:layout_height">wrap_content</item> 678 <item name="android:textAppearance"> 679 @style/TextAppearance.SafetyCenter.Headline.Entry 680 </item> 681 <item name="android:lineHeight">@dimen/sc_line_height_large</item> 682 <item name="android:ellipsize">end</item> 683 <item name="android:maxLines">4</item> 684 </style> 685 686 <style name="SafetyCenterEntrySummary" 687 parent="SafetyCenterBaseTextWidget"> 688 <item name="android:layout_width">wrap_content</item> 689 <item name="android:layout_height">wrap_content</item> 690 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Body</item> 691 <item name="android:lineHeight">@dimen/sc_line_height_medium</item> 692 <item name="android:ellipsize">end</item> 693 <item name="android:maxLines">4</item> 694 </style> 695 696 <style name="SafetyCenterEntryIconAction" 697 parent="android:Widget.DeviceDefault.Button.Borderless"> 698 <item name="android:layout_width">68dp</item> 699 <item name="android:layout_height">match_parent</item> 700 <item name="android:layout_gravity">center</item> 701 <item name="android:paddingStart">@dimen/sc_spacing_xxlarge</item> 702 <item name="android:paddingEnd">@dimen/sc_entry_padding_end</item> 703 <item name="android:background">@drawable/safety_entry_icon_action_background</item> 704 </style> 705 706 <style name="SafetyCenterGroup" 707 parent="android:Widget.DeviceDefault"> 708 <item name="android:layout_width">match_parent</item> 709 <item name="android:layout_height">wrap_content</item> 710 <item name="android:layout_marginStart">@dimen/sc_spacing_large</item> 711 <item name="android:layout_marginEnd">@dimen/sc_spacing_large</item> 712 <item name="android:baselineAligned">false</item> 713 <item name="android:minHeight">?android:attr/listPreferredItemHeight</item> 714 <item name="android:gravity">center_vertical</item> 715 <item name="android:orientation">vertical</item> 716 </style> 717 718 <style name="SafetyCenterGroupHeader" 719 parent="android:Widget.DeviceDefault"> 720 <item name="android:paddingEnd">@dimen/sc_spacing_xxxlarge</item> 721 <item name="android:layout_width">match_parent</item> 722 <item name="android:layout_height">wrap_content</item> 723 <item name="android:baselineAligned">false</item> 724 <item name="android:orientation">horizontal</item> 725 </style> 726 727 <style name="SafetyCenterCollapsedGroupHeader" 728 parent="android:Widget.DeviceDefault"> 729 <item name="android:layout_width">0dp</item> 730 <item name="android:layout_height">wrap_content</item> 731 <item name="android:layout_weight">1</item> 732 <item name="android:gravity">center_vertical</item> 733 <item name="android:orientation">horizontal</item> 734 </style> 735 736 <style name="SafetyCenterExpandedGroupHeader" 737 parent="android:Widget.DeviceDefault"> 738 <item name="android:paddingStart">@dimen/sc_spacing_xxxlarge</item> 739 <item name="android:paddingTop">@dimen/sc_spacing_xxxsmall</item> 740 <item name="android:paddingBottom">@dimen/sc_spacing_medium</item> 741 <item name="android:layout_width">0dp</item> 742 <item name="android:layout_height">wrap_content</item> 743 <item name="android:layout_weight">1</item> 744 <item name="android:gravity">center_vertical</item> 745 <item name="android:orientation">horizontal</item> 746 </style> 747 748 <style name="SafetyCenterExpandedGroupTitle" 749 parent="SafetyCenterBaseTextWidget"> 750 <item name="android:layout_width">match_parent</item> 751 <item name="android:layout_height">wrap_content</item> 752 <item name="android:textAppearance">@style/TextAppearance.SafetyCenter.Body</item> 753 <item name="android:lineHeight">@dimen/sc_line_height_medium</item> 754 <item name="android:textColor">?android:attr/textColorPrimary</item> 755 <item name="android:ellipsize">end</item> 756 <item name="android:maxLines">4</item> 757 </style> 758 759 <style name="SafetyCenterGroupEntries" 760 parent="android:Widget.DeviceDefault"> 761 <item name="android:paddingBottom">@dimen/sc_spacing_medium</item> 762 <item name="android:layout_width">match_parent</item> 763 <item name="android:layout_height">wrap_content</item> 764 <item name="android:orientation">vertical</item> 765 </style> 766 767 <style name="SafetyCenterGroupWidgetFrame" 768 parent="android:Widget.DeviceDefault"> 769 <item name="android:layout_width">wrap_content</item> 770 <item name="android:layout_height">wrap_content</item> 771 <item name="android:gravity">center_vertical</item> 772 <item name="android:orientation">vertical</item> 773 </style> 774 775 <style name="SafetyCenterExpandedGroupIcon" 776 parent="android:Widget.DeviceDefault"> 777 <item name="android:layout_width">24dp</item> 778 <item name="android:layout_height">24dp</item> 779 </style> 780 781 <style name="SafetyCenterGroupEntry" 782 parent="android:Widget.DeviceDefault"> 783 <item name="android:layout_width">match_parent</item> 784 <item name="android:layout_height">wrap_content</item> 785 <item name="android:paddingEnd">@dimen/sc_entry_padding_end</item> 786 <item name="android:paddingTop">@dimen/sc_spacing_large</item> 787 <item name="android:paddingBottom">@dimen/sc_spacing_large</item> 788 <item name="android:baselineAligned">false</item> 789 <item name="android:minHeight">?android:attr/listPreferredItemHeight</item> 790 <item name="android:gravity">center_vertical</item> 791 <item name="android:orientation">horizontal</item> 792 </style> 793</resources> 794