1 /* 2 * Copyright 2018 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 package com.google.android.setupcompat.partnerconfig; 18 19 import androidx.annotation.StringDef; 20 import androidx.annotation.VisibleForTesting; 21 import java.lang.annotation.Retention; 22 import java.lang.annotation.RetentionPolicy; 23 24 /** Resource names that can be customized by partner overlay APK. */ 25 @Retention(RetentionPolicy.SOURCE) 26 @StringDef({ 27 PartnerConfigKey.KEY_STATUS_BAR_BACKGROUND, 28 PartnerConfigKey.KEY_LIGHT_STATUS_BAR, 29 PartnerConfigKey.KEY_NAVIGATION_BAR_BG_COLOR, 30 PartnerConfigKey.KEY_LIGHT_NAVIGATION_BAR, 31 PartnerConfigKey.KEY_NAVIGATION_BAR_DIVIDER_COLOR, 32 PartnerConfigKey.KEY_FOOTER_BAR_BG_COLOR, 33 PartnerConfigKey.KEY_FOOTER_BAR_MIN_HEIGHT, 34 PartnerConfigKey.KEY_FOOTER_BAR_PADDING_START, 35 PartnerConfigKey.KEY_FOOTER_BAR_PADDING_END, 36 PartnerConfigKey.KEY_FOOTER_BUTTON_FONT_FAMILY, 37 PartnerConfigKey.KEY_FOOTER_BUTTON_FONT_WEIGHT, 38 PartnerConfigKey.KEY_FOOTER_BUTTON_ICON_ADD_ANOTHER, 39 PartnerConfigKey.KEY_FOOTER_BUTTON_ICON_CANCEL, 40 PartnerConfigKey.KEY_FOOTER_BUTTON_ICON_CLEAR, 41 PartnerConfigKey.KEY_FOOTER_BUTTON_ICON_DONE, 42 PartnerConfigKey.KEY_FOOTER_BUTTON_ICON_NEXT, 43 PartnerConfigKey.KEY_FOOTER_BUTTON_ICON_OPT_IN, 44 PartnerConfigKey.KEY_FOOTER_BUTTON_ICON_SKIP, 45 PartnerConfigKey.KEY_FOOTER_BUTTON_ICON_STOP, 46 PartnerConfigKey.KEY_FOOTER_BUTTON_PADDING_TOP, 47 PartnerConfigKey.KEY_FOOTER_BUTTON_PADDING_BOTTOM, 48 PartnerConfigKey.KEY_FOOTER_BUTTON_RADIUS, 49 PartnerConfigKey.KEY_FOOTER_BUTTON_RIPPLE_ALPHA, 50 PartnerConfigKey.KEY_FOOTER_BUTTON_TEXT_SIZE, 51 PartnerConfigKey.KEY_FOOTER_BUTTON_TEXT_STYLE, 52 PartnerConfigKey.KEY_FOOTER_BUTTON_MIN_HEIGHT, 53 PartnerConfigKey.KEY_FOOTER_BUTTON_ALIGNED_END, 54 PartnerConfigKey.KEY_FOOTER_BUTTON_DISABLED_ALPHA, 55 PartnerConfigKey.KEY_FOOTER_BUTTON_DISABLED_BG_COLOR, 56 PartnerConfigKey.KEY_FOOTER_PRIMARY_BUTTON_BG_COLOR, 57 PartnerConfigKey.KEY_FOOTER_PRIMARY_BUTTON_TEXT_COLOR, 58 PartnerConfigKey.KEY_FOOTER_PRIMARY_BUTTON_MARGIN_START, 59 PartnerConfigKey.KEY_PRIMARY_BUTTON_DISABLED_TEXT_COLOR, 60 PartnerConfigKey.KEY_FOOTER_SECONDARY_BUTTON_BG_COLOR, 61 PartnerConfigKey.KEY_FOOTER_SECONDARY_BUTTON_TEXT_COLOR, 62 PartnerConfigKey.KEY_FOOTER_SECONDARY_BUTTON_MARGIN_START, 63 PartnerConfigKey.KEY_SECONDARY_BUTTON_DISABLED_TEXT_COLOR, 64 PartnerConfigKey.KEY_LAYOUT_BACKGROUND_COLOR, 65 PartnerConfigKey.KEY_LAYOUT_MARGIN_START, 66 PartnerConfigKey.KEY_LAYOUT_MARGIN_END, 67 PartnerConfigKey.KEY_LAND_MIDDLE_HORIZONTAL_SPACING, 68 PartnerConfigKey.KEY_HEADER_TEXT_SIZE, 69 PartnerConfigKey.KEY_HEADER_TEXT_COLOR, 70 PartnerConfigKey.KEY_HEADER_FONT_FAMILY, 71 PartnerConfigKey.KEY_HEADER_FONT_WEIGHT, 72 PartnerConfigKey.KEY_HEADER_FONT_VARIATION_SETTINGS, 73 PartnerConfigKey.KEY_HEADER_AREA_BACKGROUND_COLOR, 74 PartnerConfigKey.KEY_HEADER_TEXT_MARGIN_TOP, 75 PartnerConfigKey.KEY_HEADER_TEXT_MARGIN_BOTTOM, 76 PartnerConfigKey.KEY_HEADER_CONTAINER_MARGIN_BOTTOM, 77 PartnerConfigKey.KEY_HEADER_AUTO_SIZE_ENABLED, 78 PartnerConfigKey.KEY_HEADER_AUTO_SIZE_MAX_TEXT_SIZE, 79 PartnerConfigKey.KEY_HEADER_AUTO_SIZE_MIN_TEXT_SIZE, 80 PartnerConfigKey.KEY_HEADER_AUTO_SIZE_MAX_LINE_OF_MAX_SIZE, 81 PartnerConfigKey.KEY_HEADER_AUTO_SIZE_LINE_SPACING_EXTRA, 82 PartnerConfigKey.KEY_LAYOUT_GRAVITY, 83 PartnerConfigKey.KEY_ICON_MARGIN_TOP, 84 PartnerConfigKey.KEY_ICON_SIZE, 85 PartnerConfigKey.KEY_ILLUSTRATION_MAX_WIDTH, 86 PartnerConfigKey.KEY_ILLUSTRATION_MAX_HEIGHT, 87 PartnerConfigKey.KEY_DESCRIPTION_TEXT_SIZE, 88 PartnerConfigKey.KEY_DESCRIPTION_TEXT_COLOR, 89 PartnerConfigKey.KEY_DESCRIPTION_LINK_TEXT_COLOR, 90 PartnerConfigKey.KEY_DESCRIPTION_FONT_FAMILY, 91 PartnerConfigKey.KEY_DESCRIPTION_FONT_WEIGHT, 92 PartnerConfigKey.KEY_DESCRIPTION_LINK_FONT_FAMILY, 93 PartnerConfigKey.KEY_DESCRIPTION_TEXT_MARGIN_TOP, 94 PartnerConfigKey.KEY_DESCRIPTION_TEXT_MARGIN_BOTTOM, 95 PartnerConfigKey.KEY_ACCOUNT_NAME_TEXT_SIZE, 96 PartnerConfigKey.KEY_ACCOUNT_NAME_FONT_FAMILY, 97 PartnerConfigKey.KEY_ACCOUNT_AVATAR_MARGIN_END, 98 PartnerConfigKey.KEY_ACCOUNT_AVATAR_MAX_SIZE, 99 PartnerConfigKey.KEY_CONTENT_TEXT_SIZE, 100 PartnerConfigKey.KEY_CONTENT_TEXT_COLOR, 101 PartnerConfigKey.KEY_CONTENT_LINK_TEXT_COLOR, 102 PartnerConfigKey.KEY_CONTENT_FONT_FAMILY, 103 PartnerConfigKey.KEY_CONTENT_LAYOUT_GRAVITY, 104 PartnerConfigKey.KEY_CONTENT_PADDING_TOP, 105 PartnerConfigKey.KEY_CONTENT_INFO_TEXT_SIZE, 106 PartnerConfigKey.KEY_CONTENT_INFO_FONT_FAMILY, 107 PartnerConfigKey.KEY_CONTENT_INFO_LINE_SPACING_EXTRA, 108 PartnerConfigKey.KEY_CONTENT_INFO_ICON_SIZE, 109 PartnerConfigKey.KEY_CONTENT_INFO_ICON_MARGIN_END, 110 PartnerConfigKey.KEY_CONTENT_INFO_PADDING_TOP, 111 PartnerConfigKey.KEY_CONTENT_INFO_PADDING_BOTTOM, 112 PartnerConfigKey.KEY_CARD_VIEW_INTRINSIC_WIDTH, 113 PartnerConfigKey.KEY_CARD_VIEW_INTRINSIC_HEIGHT, 114 PartnerConfigKey.KEY_ITEMS_TITLE_TEXT_SIZE, 115 PartnerConfigKey.KEY_ITEMS_SUMMARY_TEXT_SIZE, 116 PartnerConfigKey.KEY_ITEMS_SUMMARY_MARGIN_TOP, 117 PartnerConfigKey.KEY_ITEMS_TITLE_FONT_FAMILY, 118 PartnerConfigKey.KEY_ITEMS_SUMMARY_FONT_FAMILY, 119 PartnerConfigKey.KEY_ITEMS_PADDING_TOP, 120 PartnerConfigKey.KEY_ITEMS_PADDING_BOTTOM, 121 PartnerConfigKey.KEY_ITEMS_GROUP_CORNER_RADIUS, 122 PartnerConfigKey.KEY_ITEMS_MIN_HEIGHT, 123 PartnerConfigKey.KEY_ITEMS_DIVIDER_SHOWN, 124 PartnerConfigKey.KEY_PROGRESS_ILLUSTRATION_DEFAULT, 125 PartnerConfigKey.KEY_PROGRESS_ILLUSTRATION_ACCOUNT, 126 PartnerConfigKey.KEY_PROGRESS_ILLUSTRATION_CONNECTION, 127 PartnerConfigKey.KEY_PROGRESS_ILLUSTRATION_UPDATE, 128 PartnerConfigKey.KEY_PROGRESS_ILLUSTRATION_FINAL_HOLD, 129 PartnerConfigKey.KEY_PROGRESS_ILLUSTRATION_DISPLAY_MINIMUM_MS, 130 PartnerConfigKey.KEY_LOADING_LOTTIE_ACCOUNT, 131 PartnerConfigKey.KEY_LOADING_LOTTIE_CONNECTION, 132 PartnerConfigKey.KEY_LOADING_LOTTIE_DEFAULT, 133 PartnerConfigKey.KEY_LOADING_LOTTIE_UPDATE, 134 PartnerConfigKey.KEY_LOADING_LOTTIE_FINAL_HOLD, 135 PartnerConfigKey.KEY_LOADING_LIGHT_THEME_CUSTOMIZATION_DEFAULT, 136 PartnerConfigKey.KEY_LOADING_LIGHT_THEME_CUSTOMIZATION_ACCOUNT, 137 PartnerConfigKey.KEY_LOADING_LIGHT_THEME_CUSTOMIZATION_CONNECTION, 138 PartnerConfigKey.KEY_LOADING_LIGHT_THEME_CUSTOMIZATION_UPDATE, 139 PartnerConfigKey.KEY_LOADING_LIGHT_THEME_CUSTOMIZATION_FINAL_HOLD, 140 PartnerConfigKey.KEY_LOADING_DARK_THEME_CUSTOMIZATION_DEFAULT, 141 PartnerConfigKey.KEY_LOADING_DARK_THEME_CUSTOMIZATION_ACCOUNT, 142 PartnerConfigKey.KEY_LOADING_DARK_THEME_CUSTOMIZATION_CONNECTION, 143 PartnerConfigKey.KEY_LOADING_DARK_THEME_CUSTOMIZATION_UPDATE, 144 PartnerConfigKey.KEY_LOADING_DARK_THEME_CUSTOMIZATION_FINAL_HOLD, 145 PartnerConfigKey.KEY_TRANSITION_TYPE, 146 PartnerConfigKey.KEY_LOADING_LAYOUT_CONTENT_PADDING_TOP, 147 PartnerConfigKey.KEY_LOADING_LAYOUT_CONTENT_PADDING_START, 148 PartnerConfigKey.KEY_LOADING_LAYOUT_CONTENT_PADDING_END, 149 PartnerConfigKey.KEY_LOADING_LAYOUT_CONTENT_PADDING_BOTTOM, 150 PartnerConfigKey.KEY_LOADING_LAYOUT_HEADER_HEIGHT, 151 PartnerConfigKey.KEY_LOADING_LAYOUT_FULL_SCREEN_ILLUSTRATION_ENABLED, 152 PartnerConfigKey.KEY_LOADING_LAYOUT_WAIT_FOR_ANIMATION_FINISHED, 153 PartnerConfigKey.KEY_PROGRESS_BAR_MARGIN_TOP, 154 PartnerConfigKey.KEY_PROGRESS_BAR_MARGIN_BOTTOM, 155 PartnerConfigKey.KEY_TWO_PANE_ADAPT_WINDOW_WIDTH, 156 }) 157 // TODO: can be removed and always reference PartnerConfig.getResourceName()? 158 @VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE) 159 public @interface PartnerConfigKey { 160 // Status bar background color or illustration. 161 String KEY_STATUS_BAR_BACKGROUND = "setup_compat_status_bar_background"; 162 163 // The same as "WindowLightStatusBar". If set true, the status bar icons will be drawn such 164 // that it is compatible with a light status bar background 165 String KEY_LIGHT_STATUS_BAR = "setup_compat_light_status_bar"; 166 167 // Navigation bar background color 168 String KEY_NAVIGATION_BAR_BG_COLOR = "setup_compat_navigation_bar_bg_color"; 169 170 // The same as "windowLightNavigationBar". If set true, the navigation bar icons will be drawn 171 // such that it is compatible with a light navigation bar background. 172 String KEY_LIGHT_NAVIGATION_BAR = "setup_compat_light_navigation_bar"; 173 174 // Navigation bar divider color 175 String KEY_NAVIGATION_BAR_DIVIDER_COLOR = "setup_compat_navigation_bar_divider_color"; 176 177 // Background color of the footer bar. 178 String KEY_FOOTER_BAR_BG_COLOR = "setup_compat_footer_bar_bg_color"; 179 180 // The min height of the footer bar 181 String KEY_FOOTER_BAR_MIN_HEIGHT = "setup_compat_footer_bar_min_height"; 182 183 // The padding start of the footer bar 184 String KEY_FOOTER_BAR_PADDING_START = "setup_compat_footer_bar_padding_start"; 185 186 // The padding end of the footer bar 187 String KEY_FOOTER_BAR_PADDING_END = "setup_compat_footer_bar_padding_end"; 188 189 // The font face used in footer buttons. This must be a string reference to a font that is 190 // available in the system. Font references (@font or @xml) are not allowed. 191 String KEY_FOOTER_BUTTON_FONT_FAMILY = "setup_compat_footer_button_font_family"; 192 193 // The font weight used in footer buttons. 194 String KEY_FOOTER_BUTTON_FONT_WEIGHT = "setup_compat_footer_button_font_weight"; 195 196 // The icon for "add another" action. Can be "@null" for no icon. 197 String KEY_FOOTER_BUTTON_ICON_ADD_ANOTHER = "setup_compat_footer_button_icon_add_another"; 198 199 // The icon for "cancel" action. Can be "@null" for no icon. 200 String KEY_FOOTER_BUTTON_ICON_CANCEL = "setup_compat_footer_button_icon_cancel"; 201 202 // The icon for "clear" action. Can be "@null" for no icon. 203 String KEY_FOOTER_BUTTON_ICON_CLEAR = "setup_compat_footer_button_icon_clear"; 204 205 // The icon for "done" action. Can be "@null" for no icon. 206 String KEY_FOOTER_BUTTON_ICON_DONE = "setup_compat_footer_button_icon_done"; 207 208 // The icon for "next" action. Can be "@null" for no icon. 209 String KEY_FOOTER_BUTTON_ICON_NEXT = "setup_compat_footer_button_icon_next"; 210 211 // The icon for "opt-in" action. Can be "@null" for no icon. 212 String KEY_FOOTER_BUTTON_ICON_OPT_IN = "setup_compat_footer_button_icon_opt_in"; 213 214 // The icon for "skip" action. Can be "@null" for no icon. 215 String KEY_FOOTER_BUTTON_ICON_SKIP = "setup_compat_footer_button_icon_skip"; 216 217 // The icon for "stop" action. Can be "@null" for no icon. 218 String KEY_FOOTER_BUTTON_ICON_STOP = "setup_compat_footer_button_icon_stop"; 219 220 // Top padding of the footer buttons 221 String KEY_FOOTER_BUTTON_PADDING_TOP = "setup_compat_footer_button_padding_top"; 222 223 // Bottom padding of the footer buttons 224 String KEY_FOOTER_BUTTON_PADDING_BOTTOM = "setup_compat_footer_button_padding_bottom"; 225 226 // Corner radius of the footer buttons 227 String KEY_FOOTER_BUTTON_RADIUS = "setup_compat_footer_button_radius"; 228 229 // Ripple color alpha of the footer buttons 230 String KEY_FOOTER_BUTTON_RIPPLE_ALPHA = "setup_compat_footer_button_ripple_alpha"; 231 232 // Text size of the footer buttons 233 String KEY_FOOTER_BUTTON_TEXT_SIZE = "setup_compat_footer_button_text_size"; 234 235 // The font face used in footer buttons {0 = NORMAL}, {1 = BOLD}, {2 = ITALIC}, {3 = BOLD_ITALIC} 236 String KEY_FOOTER_BUTTON_TEXT_STYLE = "setup_compat_footer_button_text_style"; 237 238 // The min height of the footer buttons 239 String KEY_FOOTER_BUTTON_MIN_HEIGHT = "setup_compat_footer_button_min_height"; 240 241 // Make the footer buttons all aligned the end 242 String KEY_FOOTER_BUTTON_ALIGNED_END = "setup_compat_footer_button_aligned_end"; 243 244 // Disabled background alpha of the footer buttons 245 String KEY_FOOTER_BUTTON_DISABLED_ALPHA = "setup_compat_footer_button_disabled_alpha"; 246 247 // Disabled background color of the footer buttons 248 String KEY_FOOTER_BUTTON_DISABLED_BG_COLOR = "setup_compat_footer_button_disabled_bg_color"; 249 250 // Background color of the primary footer button 251 String KEY_FOOTER_PRIMARY_BUTTON_BG_COLOR = "setup_compat_footer_primary_button_bg_color"; 252 253 // Text color of the primary footer button 254 String KEY_FOOTER_PRIMARY_BUTTON_TEXT_COLOR = "setup_compat_footer_primary_button_text_color"; 255 256 // Margin start of the primary footer button 257 String KEY_FOOTER_PRIMARY_BUTTON_MARGIN_START = "setup_compat_footer_primary_button_margin_start"; 258 259 // Disabled text color of the primary footer button 260 String KEY_PRIMARY_BUTTON_DISABLED_TEXT_COLOR = "setup_compat_primary_button_disabled_text_color"; 261 262 // Background color of the secondary footer button 263 String KEY_FOOTER_SECONDARY_BUTTON_BG_COLOR = "setup_compat_footer_secondary_button_bg_color"; 264 265 // Text color of the secondary footer button 266 String KEY_FOOTER_SECONDARY_BUTTON_TEXT_COLOR = "setup_compat_footer_secondary_button_text_color"; 267 268 // Margin start of the secondary footer button 269 String KEY_FOOTER_SECONDARY_BUTTON_MARGIN_START = 270 "setup_compat_footer_secondary_button_margin_start"; 271 272 // Disabled text color of the secondary footer button 273 String KEY_SECONDARY_BUTTON_DISABLED_TEXT_COLOR = 274 "setup_compat_secondary_button_disabled_text_color"; 275 276 // Background color of layout 277 String KEY_LAYOUT_BACKGROUND_COLOR = "setup_design_layout_bg_color"; 278 279 // Margin start of the layout 280 String KEY_LAYOUT_MARGIN_START = "setup_design_layout_margin_start"; 281 282 // Margin end of the layout 283 String KEY_LAYOUT_MARGIN_END = "setup_design_layout_margin_end"; 284 285 // Middle horizontal spacing of the landscape layout 286 String KEY_LAND_MIDDLE_HORIZONTAL_SPACING = "setup_design_land_middle_horizontal_spacing"; 287 288 // Text size of the header 289 String KEY_HEADER_TEXT_SIZE = "setup_design_header_text_size"; 290 291 // Text color of the header 292 String KEY_HEADER_TEXT_COLOR = "setup_design_header_text_color"; 293 294 // Font family of the header 295 String KEY_HEADER_FONT_FAMILY = "setup_design_header_font_family"; 296 297 // Font weight of the header 298 String KEY_HEADER_FONT_WEIGHT = "setup_design_header_font_weight"; 299 300 // Font weight of the header 301 String KEY_HEADER_FONT_VARIATION_SETTINGS = "setup_design_header_font_variation_settings"; 302 303 // Margin top of the header text 304 String KEY_HEADER_TEXT_MARGIN_TOP = "setup_design_header_text_margin_top"; 305 306 // Margin bottom of the header text 307 String KEY_HEADER_TEXT_MARGIN_BOTTOM = "setup_design_header_text_margin_bottom"; 308 309 // Gravity of the header, icon and description 310 String KEY_LAYOUT_GRAVITY = "setup_design_layout_gravity"; 311 312 // Margin top of the icon 313 String KEY_ICON_MARGIN_TOP = "setup_design_icon_margin_top"; 314 315 // Size of the icon 316 String KEY_ICON_SIZE = "setup_design_icon_size"; 317 318 // The max width for illustration 319 String KEY_ILLUSTRATION_MAX_WIDTH = "setup_design_illustration_max_width"; 320 321 // The max height for illustration 322 String KEY_ILLUSTRATION_MAX_HEIGHT = "setup_design_illustration_max_height"; 323 324 // Background color of the header area 325 String KEY_HEADER_AREA_BACKGROUND_COLOR = "setup_design_header_area_background_color"; 326 327 // Margin bottom of the header container 328 String KEY_HEADER_CONTAINER_MARGIN_BOTTOM = "setup_design_header_container_margin_bottom"; 329 330 // Auto text size enabled status 331 String KEY_HEADER_AUTO_SIZE_ENABLED = "setup_design_header_auto_size_enabled"; 332 333 // Max text size of header when auto size enabled. Ignored if auto size is false. 334 String KEY_HEADER_AUTO_SIZE_MAX_TEXT_SIZE = "setup_design_header_auto_size_max_text_size"; 335 336 // Min text size of header when auto size enabled. Ignored if auto size is false. 337 String KEY_HEADER_AUTO_SIZE_MIN_TEXT_SIZE = "setup_design_header_auto_size_min_text_size"; 338 339 // The max lines of the max text size when auto size enabled. Ignored if auto size is false. 340 String KEY_HEADER_AUTO_SIZE_MAX_LINE_OF_MAX_SIZE = 341 "setup_design_header_auto_size_max_line_of_max_size"; 342 343 // Extra line spacing of header when auto size enabled. Ignored if auto size is false. 344 String KEY_HEADER_AUTO_SIZE_LINE_SPACING_EXTRA = 345 "setup_design_header_auto_size_line_spacing_extra"; 346 347 // Text size of the description 348 String KEY_DESCRIPTION_TEXT_SIZE = "setup_design_description_text_size"; 349 350 // Text color of the description 351 String KEY_DESCRIPTION_TEXT_COLOR = "setup_design_description_text_color"; 352 353 // Link text color of the description 354 String KEY_DESCRIPTION_LINK_TEXT_COLOR = "setup_design_description_link_text_color"; 355 356 // Font family of the description 357 String KEY_DESCRIPTION_FONT_FAMILY = "setup_design_description_font_family"; 358 359 // Font weight of the description 360 String KEY_DESCRIPTION_FONT_WEIGHT = "setup_design_description_font_weight"; 361 362 // Font family of the link text 363 String KEY_DESCRIPTION_LINK_FONT_FAMILY = "setup_design_description_link_font_family"; 364 365 // Margin top of the header text 366 String KEY_DESCRIPTION_TEXT_MARGIN_TOP = "setup_design_description_text_margin_top"; 367 368 // Margin bottom of the header text 369 String KEY_DESCRIPTION_TEXT_MARGIN_BOTTOM = "setup_design_description_text_margin_bottom"; 370 371 // Font size of the account name 372 String KEY_ACCOUNT_NAME_TEXT_SIZE = "setup_design_account_name_text_size"; 373 374 // Font family of the account name 375 String KEY_ACCOUNT_NAME_FONT_FAMILY = "setup_design_account_name_font_family"; 376 377 // Margin end of the account avatar 378 String KEY_ACCOUNT_AVATAR_MARGIN_END = "setup_design_account_avatar_margin_end"; 379 380 // Size of the account avatar 381 String KEY_ACCOUNT_AVATAR_MAX_SIZE = "setup_design_account_avatar_size"; 382 383 // Text size of the body content text 384 String KEY_CONTENT_TEXT_SIZE = "setup_design_content_text_size"; 385 386 // Text color of the body content text 387 String KEY_CONTENT_TEXT_COLOR = "setup_design_content_text_color"; 388 389 // Link text color of the body content text 390 String KEY_CONTENT_LINK_TEXT_COLOR = "setup_design_content_link_text_color"; 391 392 // Font family of the body content text 393 String KEY_CONTENT_FONT_FAMILY = "setup_design_content_font_family"; 394 395 // Gravity of the body content text 396 String KEY_CONTENT_LAYOUT_GRAVITY = "setup_design_content_layout_gravity"; 397 398 // The padding top of the content 399 String KEY_CONTENT_PADDING_TOP = "setup_design_content_padding_top"; 400 401 // The text size of the content info. 402 String KEY_CONTENT_INFO_TEXT_SIZE = "setup_design_content_info_text_size"; 403 404 // The font family of the content info. 405 String KEY_CONTENT_INFO_FONT_FAMILY = "setup_design_content_info_font_family"; 406 407 // The text line spacing extra of the content info. 408 String KEY_CONTENT_INFO_LINE_SPACING_EXTRA = "setup_design_content_info_line_spacing_extra"; 409 410 // The icon size of the content info. 411 String KEY_CONTENT_INFO_ICON_SIZE = "setup_design_content_info_icon_size"; 412 413 // The icon margin end of the content info. 414 String KEY_CONTENT_INFO_ICON_MARGIN_END = "setup_design_content_info_icon_margin_end"; 415 416 // The padding top of the content info. 417 String KEY_CONTENT_INFO_PADDING_TOP = "setup_design_content_info_padding_top"; 418 419 // The padding bottom of the content info. 420 String KEY_CONTENT_INFO_PADDING_BOTTOM = "setup_design_content_info_padding_bottom"; 421 422 // The title text size of list items. 423 String KEY_ITEMS_TITLE_TEXT_SIZE = "setup_design_items_title_text_size"; 424 425 // The summary text size of list items. 426 String KEY_ITEMS_SUMMARY_TEXT_SIZE = "setup_design_items_summary_text_size"; 427 428 // The summary margin top of list items. 429 String KEY_ITEMS_SUMMARY_MARGIN_TOP = "setup_design_items_summary_margin_top"; 430 431 // The title font family of list items. 432 String KEY_ITEMS_TITLE_FONT_FAMILY = "setup_design_items_title_font_family"; 433 434 // The summary font family of list items. 435 String KEY_ITEMS_SUMMARY_FONT_FAMILY = "setup_design_items_summary_font_family"; 436 437 // The padding top of list items. 438 String KEY_ITEMS_PADDING_TOP = "setup_design_items_padding_top"; 439 440 // The padding bottom of list items. 441 String KEY_ITEMS_PADDING_BOTTOM = "setup_design_items_padding_bottom"; 442 443 // The corner radius of list items group. 444 String KEY_ITEMS_GROUP_CORNER_RADIUS = "setup_design_items_group_corner_radius"; 445 446 // The minimum height of list items. 447 String KEY_ITEMS_MIN_HEIGHT = "setup_design_items_min_height"; 448 449 // The divider of list items are showing. 450 String KEY_ITEMS_DIVIDER_SHOWN = "setup_design_items_divider_shown"; 451 452 // The intrinsic width of the card view for foldable/tablet. 453 String KEY_CARD_VIEW_INTRINSIC_WIDTH = "setup_design_card_view_intrinsic_width"; 454 455 // The intrinsic height of the card view for foldable/tablet. 456 String KEY_CARD_VIEW_INTRINSIC_HEIGHT = "setup_design_card_view_intrinsic_height"; 457 458 // The animation of loading screen used in those activities which is non of below type. 459 String KEY_PROGRESS_ILLUSTRATION_DEFAULT = "progress_illustration_custom_default"; 460 461 // The animation of loading screen used in those activity which is processing account info or 462 // related functions. 463 // For example:com.google.android.setupwizard.LOAD_ADD_ACCOUNT_INTENT 464 String KEY_PROGRESS_ILLUSTRATION_ACCOUNT = "progress_illustration_custom_account"; 465 466 // The animation of loading screen used in those activity which is processing data connection. 467 // For example:com.android.setupwizard.CAPTIVE_PORTAL 468 String KEY_PROGRESS_ILLUSTRATION_CONNECTION = "progress_illustration_custom_connection"; 469 470 // The animation of loading screen used in those activities which is updating device. 471 // For example:com.google.android.setupwizard.COMPAT_EARLY_UPDATE 472 String KEY_PROGRESS_ILLUSTRATION_UPDATE = "progress_illustration_custom_update"; 473 474 // The animation of loading screen used in those activities which is updating device. 475 // For example:com.google.android.setupwizard.FINAL_HOLD 476 String KEY_PROGRESS_ILLUSTRATION_FINAL_HOLD = "final_hold_custom_illustration"; 477 478 // The minimum illustration display time, set to 0 may cause the illustration stuck 479 String KEY_PROGRESS_ILLUSTRATION_DISPLAY_MINIMUM_MS = "progress_illustration_display_minimum_ms"; 480 481 // The animation for S+ devices used in those screens waiting for non of below type. 482 String KEY_LOADING_LOTTIE_DEFAULT = "loading_animation_custom_default"; 483 484 // The animation for S+ devices used in those screens which is processing account info or related 485 // functions. 486 // For example:com.google.android.setupwizard.LOAD_ADD_ACCOUNT_INTENT 487 String KEY_LOADING_LOTTIE_ACCOUNT = "loading_animation_custom_account"; 488 489 // The animation for S+ devices used in those screens which is processing data connection. 490 // For example:com.android.setupwizard.CAPTIVE_PORTAL 491 String KEY_LOADING_LOTTIE_CONNECTION = "loading_animation_custom_connection"; 492 493 // The animation for S+ devices used in those screens which is updating devices. 494 // For example:com.google.android.setupwizard.COMPAT_EARLY_UPDATE 495 String KEY_LOADING_LOTTIE_UPDATE = "loading_animation_custom_update"; 496 497 // The animation for S+ devices used in those screens which is updating devices. 498 // For example:com.google.android.setupwizard.FINAL_HOLD 499 String KEY_LOADING_LOTTIE_FINAL_HOLD = "loading_animation_custom_final_hold"; 500 501 // A string-array to list all the key path and color map for default animation for light theme. 502 // For example: background:#FFFFFF 503 String KEY_LOADING_LIGHT_THEME_CUSTOMIZATION_DEFAULT = 504 "loading_light_theme_customization_default"; 505 506 // A string-array to list all the key path and color map for account animation for light theme. 507 // For example: background:#FFFFFF 508 String KEY_LOADING_LIGHT_THEME_CUSTOMIZATION_ACCOUNT = 509 "loading_light_theme_customization_account"; 510 511 // A string-array to list all the key path and color map for connection animation for light theme. 512 // For example: background:#FFFFFF 513 String KEY_LOADING_LIGHT_THEME_CUSTOMIZATION_CONNECTION = 514 "loading_light_theme_customization_connection"; 515 516 // A string-array to list all the key path and color map for update animation for light theme. 517 // For example: background:#FFFFFF 518 String KEY_LOADING_LIGHT_THEME_CUSTOMIZATION_UPDATE = "loading_light_theme_customization_update"; 519 520 // A string-array to list all the key path and color map for final hold animation for light theme. 521 // For example: background:#FFFFFF 522 String KEY_LOADING_LIGHT_THEME_CUSTOMIZATION_FINAL_HOLD = 523 "loading_light_theme_customization_final_hold"; 524 525 // A string-array to list all the key path and color map for default animation for dark theme. 526 // For example: background:#000000 527 String KEY_LOADING_DARK_THEME_CUSTOMIZATION_DEFAULT = "loading_dark_theme_customization_default"; 528 529 // A string-array to list all the key path and color map for account animation for dark theme. 530 // For example: background:#000000 531 String KEY_LOADING_DARK_THEME_CUSTOMIZATION_ACCOUNT = "loading_dark_theme_customization_account"; 532 533 // A string-array to list all the key path and color map for connection animation for dark theme. 534 // For example: background:#000000 535 String KEY_LOADING_DARK_THEME_CUSTOMIZATION_CONNECTION = 536 "loading_dark_theme_customization_connection"; 537 538 // A string-array to list all the key path and color map for update animation for dark theme. 539 // For example: background:#000000 540 String KEY_LOADING_DARK_THEME_CUSTOMIZATION_UPDATE = "loading_dark_theme_customization_update"; 541 542 // A string-array to list all the key path and color map for final hold animation for dark theme. 543 // For example: background:#000000 544 String KEY_LOADING_DARK_THEME_CUSTOMIZATION_FINAL_HOLD = 545 "loading_dark_theme_customization_final_hold"; 546 547 // The transition type between activities 548 String KEY_TRANSITION_TYPE = "setup_design_transition_type"; 549 550 // A padding top of the content frame of loading layout. 551 String KEY_LOADING_LAYOUT_CONTENT_PADDING_TOP = "loading_layout_content_padding_top"; 552 553 // A padding start of the content frame of loading layout. 554 String KEY_LOADING_LAYOUT_CONTENT_PADDING_START = "loading_layout_content_padding_start"; 555 556 // A padding end of the content frame of loading layout. 557 String KEY_LOADING_LAYOUT_CONTENT_PADDING_END = "loading_layout_content_padding_end"; 558 559 // A padding bottom of the content frame of loading layout. 560 String KEY_LOADING_LAYOUT_CONTENT_PADDING_BOTTOM = "loading_layout_content_padding_bottom"; 561 562 // A height of the header of loading layout. 563 String KEY_LOADING_LAYOUT_HEADER_HEIGHT = "loading_layout_header_height"; 564 565 // Use the fullscreen style lottie animation. 566 String KEY_LOADING_LAYOUT_FULL_SCREEN_ILLUSTRATION_ENABLED = 567 "loading_layout_full_screen_illustration_enabled"; 568 569 // Waiting the animation finished before process to the next page/action. 570 String KEY_LOADING_LAYOUT_WAIT_FOR_ANIMATION_FINISHED = 571 "loading_layout_wait_for_animation_finished"; 572 573 // A margin top of the content frame of progress bar. 574 String KEY_PROGRESS_BAR_MARGIN_TOP = "setup_design_progress_bar_margin_top"; 575 576 // A margin bottom of the content frame of progress bar. 577 String KEY_PROGRESS_BAR_MARGIN_BOTTOM = "setup_design_progress_bar_margin_bottom"; 578 579 // A adapt window width to determine how large to show two panel. 580 String KEY_TWO_PANE_ADAPT_WINDOW_WIDTH = "setup_compat_two_pane_adapt_window_width"; 581 } 582