fix: 首次提交

This commit is contained in:
2024-12-09 11:25:23 +08:00
parent d0c01071e9
commit 2c2109a5f3
4741 changed files with 290641 additions and 0 deletions

View File

@@ -0,0 +1,310 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<!-- Theme attributes -->
<attr name="sudLayoutTheme" format="reference" />
<attr name="sudMarginStart" format="dimension|reference" />
<attr name="sudMarginEnd" format="dimension|reference" />
<attr name="sudEditTextBackgroundColor" format="color" />
<attr name="sudButtonHighlightAlpha" format="float" />
<attr name="sudGlifHeaderTitleStyle" format="reference" />
<!-- Subset of values in "gravity" in frameworks/base/core/res/res/values/attrs.xml. Only
horizontal values are listed here as the header does not support vertical gravity. -->
<attr name="sudGlifHeaderGravity">
<!-- Push object to the left of its container, not changing its size. -->
<flag name="left" value="0x03" />
<!-- Push object to the right of its container, not changing its size. -->
<flag name="right" value="0x05" />
<!-- Place object in the horizontal center of its container, not changing its size. -->
<flag name="center_horizontal" value="0x01" />
<!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
<flag name="fill_horizontal" value="0x07" />
<!-- Push object to the beginning of its container, not changing its size. -->
<flag name="start" value="0x00800003" />
<!-- Push object to the end of its container, not changing its size. -->
<flag name="end" value="0x00800005" />
</attr>
<attr name="sudGlifSubtitleGravity">
<!-- Push object to the left of its container, not changing its size. -->
<flag name="left" value="0x03" />
<!-- Push object to the right of its container, not changing its size. -->
<flag name="right" value="0x05" />
<!-- Place object in the horizontal center of its container, not changing its size. -->
<flag name="center_horizontal" value="0x01" />
<!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
<flag name="fill_horizontal" value="0x07" />
<!-- Push object to the beginning of its container, not changing its size. -->
<flag name="start" value="0x00800003" />
<!-- Push object to the end of its container, not changing its size. -->
<flag name="end" value="0x00800005" />
</attr>
<attr name="sudGlifIconStyle" format="reference" />
<attr name="sudGlifIconSize" format="dimension" />
<attr name="sudGlifDescriptionStyle" format="reference" />
<attr name="sudGlifAccountNameStyle" format="reference" />
<attr name="sudGlifAccountAvatarStyle" format="reference" />
<attr name="sudGlifAccountContainerStyle" format="reference" />
<attr name="sudGlifAccountAvatarSize" format="dimension" />
<attr name="sudButtonAllCaps" format="boolean" />
<attr name="sudButtonCornerRadius" format="dimension" />
<attr name="sudButtonFontFamily" format="string|reference" />
<attr name="sudButtonTertiaryGravity">
<!-- Push object to the left of its container, not changing its size. -->
<flag name="left" value="0x03" />
<!-- Push object to the right of its container, not changing its size. -->
<flag name="right" value="0x05" />
<!-- Place object in the horizontal center of its container, not changing its size. -->
<flag name="center_horizontal" value="0x01" />
<!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
<flag name="fill_horizontal" value="0x07" />
<!-- Push object to the beginning of its container, not changing its size. -->
<flag name="start" value="0x00800003" />
<!-- Push object to the end of its container, not changing its size. -->
<flag name="end" value="0x00800005" />
</attr>
<attr name="sudCardBackground" format="color|reference" />
<attr name="sudDividerCondition">
<enum name="either" value="0" />
<enum name="both" value="1" />
</attr>
<attr name="sudFillContentLayoutStyle" format="reference" />
<attr name="sudListItemIconColor" format="color" />
<attr name="sudNavBarBackgroundColor" format="color" />
<attr name="sudNavBarButtonBackground" format="color|reference" />
<attr name="sudNavBarTextColor" format="color" />
<attr name="sudNavBarTheme" format="reference" />
<attr name="sudIconTint" format="color" />
<attr name="sudIconGravity">
<!-- Values in the enum has to be the same as in android.view.Gravity -->
<enum name="top" value="0x30" />
<enum name="center_vertical" value="0x10" />
<enum name="bottom" value="0x50" />
</attr>
<!-- Values copied from frameworks/base/core/res/res/values/attrs.xml -->
<attr name="sudScrollIndicators">
<!-- No scroll indicators are displayed. -->
<flag name="none" value="0x00" />
<!-- Displays top scroll indicator when view can be scrolled up. -->
<flag name="top" value="0x01" />
<!-- Displays bottom scroll indicator when vew can be scrolled down. -->
<flag name="bottom" value="0x02" />
<!-- Displays left scroll indicator when vew can be scrolled left. -->
<flag name="left" value="0x04" />
<!-- Displays right scroll indicator when vew can be scrolled right. -->
<flag name="right" value="0x08" />
<!-- Displays right scroll indicator when vew can be scrolled in the
start direction. -->
<flag name="start" value="0x10" />
<!-- Displays right scroll indicator when vew can be scrolled in the
end direction. -->
<flag name="end" value="0x20" />
</attr>
<!-- Custom the scroll bar indicator -->
<attr name="sudScrollBarThumb" format="reference" />
<!-- Custom view attributes -->
<attr name="sudColorPrimary" format="color" />
<attr name="sudHeader" format="reference" />
<!-- Deprecated. Use sudDividerInsetStart and sudDividerInsetEnd instead -->
<attr name="sudDividerInset" format="dimension|reference" />
<attr name="sudDividerInsetEnd" format="dimension|reference" />
<attr name="sudDividerInsetStart" format="dimension|reference" />
<attr name="sudDividerInsetStartNoIcon" format="dimension|reference" />
<attr name="sudDividerShown" format="boolean"/>
<attr name="sudItemContainerStyle" format="reference"/>
<attr name="sudItemIconContainerStyle" format="reference"/>
<attr name="sudItemTitleStyle" format="reference"/>
<attr name="sudItemSummaryStyle" format="reference"/>
<attr name="sudItemDescriptionStyle" format="reference" />
<attr name="sudItemDescriptionTitleStyle" format="reference" />
<attr name="sudItemDescriptionTitleTextAppearence" format="reference" />
<attr name="sudItemVerboseTitleStyle" format="reference" />
<attr name="sudContentFramePaddingTop" format="dimension|reference" />
<attr name="sudContentFramePaddingBottom" format="dimension|reference" />
<!-- EditBox -->
<attr name="sudEditBoxStyle" format="reference" />
<attr name="sudEditBoxColor" format="reference" />
<attr name="boxCornerRadiusTopStart" format="dimension"/>
<attr name="boxCornerRadiusTopEnd" format="dimension"/>
<attr name="boxCornerRadiusBottomStart" format="dimension"/>
<attr name="boxCornerRadiusBottomEnd" format="dimension"/>
<attr name="sudGlifContentPaddingTop" format="dimension|reference" />
<attr name="sudHasStableIds" format="boolean|reference" />
<attr name="selectableItemBackground" format="reference" />
<declare-styleable name="SudIllustration">
<attr name="sudAspectRatio" format="float" />
</declare-styleable>
<declare-styleable name="SudStickyHeaderListView">
<attr name="sudHeader" />
</declare-styleable>
<declare-styleable name="SudHeaderRecyclerView">
<attr name="sudHeader" />
</declare-styleable>
<declare-styleable name="SudIllustrationVideoView">
<attr name="sudVideo" format="reference" />
<attr name="sudPauseVideoWhenFinished" format="boolean" />
</declare-styleable>
<declare-styleable name="SudGlifLayout">
<attr name="sudBackgroundPatterned" format="boolean" />
<attr name="sudBackgroundBaseColor" format="color" />
<attr name="sudColorPrimary" />
<attr name="sudStickyHeader" format="reference" />
<!-- This attribute is false by default. When set to true, the layout will apply partner
customizations to Header, Icon and Description. This attribute will be ignored when
GlifLayout.shouldApplyPartnerResource() returns false. -->
<attr name="sudUsePartnerHeavyTheme" format="boolean" />
</declare-styleable>
<declare-styleable name="SudIntrinsicSizeFrameLayout">
<attr name="android:height" />
<attr name="android:width" />
</declare-styleable>
<attr name="sudContentIllustrationMaxWidth" format="dimension" />
<attr name="sudContentIllustrationMaxHeight" format="dimension" />
<attr name="sudContentIllustrationPaddingTop" format="dimension" />
<attr name="sudContentIllustrationPaddingBottom" format="dimension" />
<declare-styleable name="SudFillContentLayout">
<attr name="android:maxHeight" />
<attr name="android:maxWidth" />
</declare-styleable>
<declare-styleable name="SudSetupWizardLayout">
<attr name="sudBackground" format="color|reference" />
<attr name="sudBackgroundTile" format="color|reference" />
<attr name="sudDecorPaddingTop" format="dimension|reference" />
<attr name="sudIllustration" format="color|reference" />
<attr name="sudIllustrationAspectRatio" format="float|reference" />
<attr name="sudIllustrationHorizontalTile" format="color|reference" />
<attr name="sudIllustrationImage" format="color|reference" />
</declare-styleable>
<declare-styleable name="SudTemplateLayout">
<attr name="android:layout" />
<attr name="sudContainer" format="reference" />
</declare-styleable>
<declare-styleable name="SudAbstractItem">
<attr name="android:id" />
</declare-styleable>
<declare-styleable name="SudItem">
<attr name="android:enabled" />
<attr name="android:icon" />
<attr name="android:layout" />
<attr name="android:summary" />
<attr name="android:title" />
<attr name="android:visible" />
<attr name="android:contentDescription" />
<attr name="sudIconTint" />
<attr name="sudIconGravity" />
</declare-styleable>
<declare-styleable name="SudDividerItemDecoration">
<attr name="android:listDivider" />
<attr name="android:dividerHeight" />
<attr name="sudDividerCondition" />
</declare-styleable>
<declare-styleable name="SudButtonItem">
<attr name="android:buttonStyle" />
<attr name="android:enabled" />
<attr name="android:text" />
<attr name="android:theme" />
</declare-styleable>
<declare-styleable name="SudIconMixin">
<attr name="android:icon" />
<attr name="sudUpscaleIcon" format="boolean" />
<attr name="sudIconTint" />
</declare-styleable>
<declare-styleable name="SudListMixin">
<attr name="android:entries" />
<attr name="sudDividerInset" />
<attr name="sudDividerInsetEnd" />
<attr name="sudDividerInsetStart" />
<attr name="sudDividerShown" />
</declare-styleable>
<declare-styleable name="SudRecyclerItemAdapter">
<attr name="android:colorBackground" />
<attr name="android:selectableItemBackground" />
<attr name="selectableItemBackground" />
</declare-styleable>
<declare-styleable name="SudRecyclerMixin">
<attr name="android:entries" />
<attr name="sudDividerInset" />
<attr name="sudDividerInsetEnd" />
<attr name="sudDividerInsetStart" />
<attr name="sudHasStableIds" />
</declare-styleable>
<declare-styleable name="SudSwitchItem">
<attr name="android:checked" />
</declare-styleable>
<declare-styleable name="SudExpandableSwitchItem">
<attr name="sudCollapsedSummary" format="string" localization="suggested" />
<attr name="sudExpandedSummary" format="string" localization="suggested" />
</declare-styleable>
<declare-styleable name="SudDescriptionMixin">
<attr name="sudDescriptionText" format="string" localization="suggested" />
<attr name="sudDescriptionTextColor" format="reference|color" />
<attr name="sudGlifDescriptionMarginTop" format="dimension" />
<attr name="sudGlifDescriptionMarginBottom" format="dimension" />
</declare-styleable>
<declare-styleable name="SudProgressBarMixin">
<attr name="sudUseBottomProgressBar" format="boolean" />
</declare-styleable>
<declare-styleable name="SudGlifLoadingFramePadding">
<attr name="sudLoadingContentFramePaddingTop" format="dimension|reference" />
<attr name="sudLoadingContentFramePaddingStart" format="dimension|reference" />
<attr name="sudLoadingContentFramePaddingEnd" format="dimension|reference" />
<attr name="sudLoadingContentFramePaddingBottom" format="dimension|reference" />
</declare-styleable>
<attr name="sudLoadingHeaderHeight" format="dimension|reference" />
<!-- Glif Switch Bar style -->
<attr name="sudSwitchBarThumbOnColor" format="color|reference" />
<attr name="sudSwitchBarThumbOffColor" format="color|reference" />
<attr name="sudSwitchBarTrackOnColor" format="color|reference" />
<attr name="sudSwitchBarTrackOffColor" format="color|reference" />
</resources>

View File

@@ -0,0 +1,198 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:tools="http://schemas.android.com/tools"
tools:keep="@color/sud_system_accent*,@color/sud_system_neutral*">
<!-- General colors -->
<color name="sud_color_accent_dark">#ff448aff</color>
<color name="sud_color_accent_light">#ff3367d6</color>
<color name="sud_color_background_dark">#ff303030</color>
<color name="sud_color_background_light">#fffafafa</color>
<color name="sud_link_color_dark">#ff448aff</color>
<color name="sud_link_color_light">#ff3367d6</color>
<color name="sud_list_item_icon_color_dark">#b3ffffff</color>
<color name="sud_list_item_icon_color_light">#89000000</color>
<color name="sud_progress_bar_color_dark">#ffffcd40</color>
<color name="sud_progress_bar_color_light">#fff4b400</color>
<!-- On versions < 23, we cannot reference other theme values in a color resource. Default to
the framework default of 12% black -->
<color name="sud_flat_button_highlight">#1f000000</color>
<!-- Navigation bar colors -->
<color name="sud_navbar_bg_dark">#ff21272b</color>
<color name="sud_navbar_bg_light">#ffe4e7e9</color>
<!-- GLIF colors -->
<color name="sud_color_accent_glif_dark">#ff4285f4</color>
<color name="sud_color_accent_glif_light">#ff4285f4</color>
<color name="sud_color_accent_glif_v3_dark">#ff8ab4f8</color>
<color name="sud_color_accent_glif_v3_light">#ff1a73e8</color>
<color name="sud_glif_background_color_dark">#ff000000</color>
<color name="sud_glif_background_color_light">#ffffffff</color>
<color name="sud_glif_edit_text_bg_dark_color">#ff202124</color>
<color name="sud_glif_edit_text_bg_light_color">#0a000000</color>
<color name="sud_glif_v3_dialog_background_color_dark">#ff3c4043</color>
<color name="sud_glif_v3_dialog_background_color_light">#fff1f3f4</color>
<color name="sud_glif_v3_nav_bar_color_dark">#ff000000</color>
<color name="sud_glif_v3_nav_bar_color_light">#ffffffff</color>
<color name="sud_glif_v3_nav_bar_divider_color_dark">#00000000</color>
<color name="sud_glif_v3_nav_bar_divider_color_light">#1f000000</color>
<color name="sud_glif_v3_text_color_dark">#ffffffff</color>
<color name="sud_glif_v3_text_color_light">#de000000</color>
<color name="sud_glif_window_bg_dark_color">#ff202124</color>
<color name="sud_glif_window_bg_light_color">#ffffffff</color>
<!-- Color for error text -->
<color name="sud_color_error_text_dark">#fff28b82</color>
<color name="sud_color_error_text_light">#ffd93025</color>
<color name="sud_dynamic_color_accent_glif_v3_dark">@color/sud_color_accent_glif_v3_dark</color>
<color name="sud_dynamic_color_accent_glif_v3_light">@color/sud_color_accent_glif_v3_light</color>
<color name="sud_system_accent1_100">#8DF5E3</color>
<color name="sud_system_accent1_200">#71D8C7</color>
<color name="sud_system_accent1_300">#53BCAC</color>
<color name="sud_system_accent1_600">#006C5F</color>
<color name="sud_system_accent2_100">#FFE8DEF8</color>
<color name="sud_system_accent2_200">#A4CFC7</color>
<color name="sud_system_accent2_600">#3D665F</color>
<color name="sud_system_accent3_100">#ECDBFF</color>
<color name="sud_system_accent3_200">#CFBFEB</color>
<color name="sud_system_accent3_600">#64587F</color>
<color name="sud_system_neutral1_0">#ffffff</color>
<color name="sud_system_neutral1_10">#f0f0f0</color>
<color name="sud_system_neutral1_50">#f0f0f0</color>
<color name="sud_system_neutral1_200">#c6c6c6</color>
<color name="sud_system_neutral1_300">#ababab</color>
<color name="sud_system_neutral1_400">#909090</color>
<color name="sud_system_neutral1_500">#757575</color>
<color name="sud_system_neutral1_600">#5e5e5e</color>
<color name="sud_system_neutral1_700">#464646</color>
<color name="sud_system_neutral1_800">#303030</color>
<color name="sud_system_neutral1_900">#1b1b1b</color>
<color name="sud_system_neutral1_1000">#000000</color>
<color name="sud_system_neutral2_50">#f0f0f0</color>
<color name="sud_system_neutral2_100">#e2e2e2</color>
<color name="sud_system_neutral2_200">#c6c6c6</color>
<color name="sud_system_neutral2_300">#ababab</color>
<color name="sud_system_neutral2_400">#909090</color>
<color name="sud_system_neutral2_500">#757575</color>
<color name="sud_system_neutral2_700">#464646</color>
<color name="success_color_device_default_dark">#5BB974</color>
<color name="success_color_device_default_light">#1E8E3E</color>
<color name="fallback_color_device_default_dark">#669DF6</color>
<color name="fallback_color_device_default_light">#1A73E8</color>
<color name="sud_portal_pending_progress_light">#fdc69c</color>
<color name="sud_portal_pending_progress_dark">#b06000</color>
<color name="sud_primary_default_text_dark">#FFFFFF</color>
<color name="sud_primary_default_text_light">#202124</color>
<color name="sud_secondary_default_text_dark">#9AA0A6</color>
<color name="sud_secondary_default_text_light">#5F6368</color>
<color name="sud_inactive_default_dark">#5F6368</color>
<color name="sud_inactive_default_light">#9AA0A6</color>
<color name="sud_error_warning_default_dark">#EE675C</color>
<color name="sud_error_warning_default_light">#D93025</color>
<color name="sud_system_primary_text">@color/sud_primary_default_text_light</color>
<color name="sud_system_secondary_text">@color/sud_secondary_default_text_light</color>
<color name="sud_system_tertiary_text_inactive">@color/sud_inactive_default_light</color>
<color name="sud_system_error_warning">@color/sud_error_warning_default_light</color>
<color name="sud_system_success_done">@color/success_color_device_default_light</color>
<color name="sud_system_fallback_accent">@color/fallback_color_device_default_light</color>
<color name="sud_portal_pending_progress">@color/sud_portal_pending_progress_light</color>
<color name="sud_switch_track_off_light">#FF55575E</color>
<color name="sud_switch_thumb_off_light">#FFA5ACB2</color>
<color name="sud_switch_track_off_dark">#FF454749</color>
<color name="sud_switch_thumb_off_dark">#FF8F9193</color>
<color name="sud_switch_track_on_light">#3B78E7</color>
<color name="sud_switch_thumb_on_light">#C6DAFC</color>
<color name="sud_switch_track_on_dark">#824285F4</color>
<color name="sud_switch_thumb_on_dark">#C6DAFC</color>
<color name="sud_uniformity_backdrop_color">@android:color/white</color>
<color name="sud_autofilled_highlight_bg_color">#4dffeb3b</color>
</resources>

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<!-- The duration (in milliseconds) of activity transitions -->
<integer name="sudTransitionDuration">300</integer>
<!-- Whether to use tablet layout -->
<bool name="sudUseTabletLayout">false</bool>
<!-- Whether to make the footer button in footer bar align end -->
<bool name="suc_footer_bar_button_align_end">false</bool>
<!-- Secondary font for use with headings, title, and other non-body text -->
<string name="sudFontSecondary" translatable="false">google-sans</string>
<string name="sudFontSecondaryText" translatable="false">google-sans-text</string>
<string name="sudFontSecondaryMedium" translatable="false">google-sans-medium</string>
<!-- Material You button font family-->
<string name="sudFontSecondaryMediumMaterialYou" translatable="false">google-sans-text-medium</string>
<item name="sud_layout_description" type="id" />
</resources>

View File

@@ -0,0 +1,320 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Device default style -->
<!-- Copy from Widget.DeviceDefault.Button.ButtonBar.AlertDialog -->
<!-- Dialog button bar width -->
<dimen name="sud_alert_dialog_button_bar_width">64dp</dimen>
<!-- Dialog button bar height -->
<dimen name="sud_alert_dialog_button_bar_height">48dip</dimen>
<!-- Dialog button bar button text size -->
<dimen name="sud_alert_dialog_button_bar_button_text_size">14sp</dimen>
<!-- Dialog title text size -->
<dimen name="sud_alert_dialog_title_text_size">20sp</dimen>
<dimen name="sud_alert_dialog_title_text_size_material_you">24sp</dimen>
<!-- General -->
<dimen name="sud_layout_margin_sides">40dp</dimen>
<dimen name="sud_glif_button_corner_radius">2dp</dimen>
<!-- Calculated by (sud_glif_margin_start - 4dp internal padding of button) -->
<dimen name="sud_glif_button_margin_end">20dp</dimen>
<!-- Calculated by (sud_glif_margin_start - sud_glif_button_padding) -->
<dimen name="sud_glif_button_margin_start">8dp</dimen>
<dimen name="sud_glif_button_padding">16dp</dimen>
<dimen name="sud_glif_button_min_height">48dp</dimen>
<!-- Negative of sud_glif_button_padding -->
<dimen name="sud_glif_negative_button_padding">-16dp</dimen>
<dimen name="sud_glif_footer_padding_vertical">8dp</dimen>
<dimen name="sud_glif_footer_padding_start">8dp</dimen>
<!-- Calculated by (sud_glif_margin_end - 4dp internal padding of button) -->
<dimen name="sud_glif_footer_padding_end">20dp</dimen>
<dimen name="sud_glif_footer_bar_min_height">72dp</dimen>
<dimen name="sud_glif_margin_start">24dp</dimen>
<dimen name="sud_glif_margin_end">24dp</dimen>
<dimen name="sud_glif_icon_margin_top">56dp</dimen>
<dimen name="sud_glif_content_padding_top">0dp</dimen>
<dimen name="sud_horizontal_icon_height">32dp</dimen>
<dimen name="sud_glif_alert_dialog_corner_radius">8dp</dimen>
<dimen name="sud_glif_alert_dialog_footer_bar_padding_start">8dp</dimen>
<dimen name="sud_glif_v3_button_corner_radius">4dp</dimen>
<dimen name="sud_glif_device_default_dialog_corner_radius">28dp</dimen>
<dimen name="sud_glif_land_header_area_weight">1</dimen>
<dimen name="sud_glif_land_content_area_weight">1</dimen>
<dimen name="sud_glif_land_middle_horizontal_spacing">48dp</dimen>
<!-- Content styles -->
<dimen name="sud_check_box_line_spacing_extra">4sp</dimen>
<dimen name="sud_check_box_margin_bottom">12dp</dimen>
<dimen name="sud_check_box_margin_start">1dp</dimen>
<dimen name="sud_check_box_margin_top">24dp</dimen>
<dimen name="sud_check_box_padding_start">15dp</dimen>
<dimen name="sud_content_frame_padding_top">0dp</dimen>
<dimen name="sud_content_frame_padding_bottom">16dp</dimen>
<dimen name="sud_description_margin_top">24dp</dimen>
<dimen name="sud_description_margin_bottom">12dp</dimen>
<dimen name="sud_description_margin_bottom_lists">24dp</dimen>
<dimen name="sud_description_line_spacing_extra">4sp</dimen>
<dimen name="sud_description_text_size">16sp</dimen>
<!-- This value is the margin bottom difference between DescriptionItem and DescriptionMixin. -->
<dimen name="sud_description_margin_top_extra">1dp</dimen>
<dimen name="sud_description_margin_bottom_extra">12dp</dimen>
<!-- TODO: Remove sud_description_glif_margin_xxx once all apps migrate to sud_glif_description_margin_xxx -->
<dimen name="sud_description_glif_margin_top">3dp</dimen>
<dimen name="sud_description_glif_margin_bottom_lists">24dp</dimen>
<dimen name="sud_content_glif_margin_top">32dp</dimen>
<dimen name="sud_content_glif_margin_bottom">6dp</dimen>
<dimen name="sud_content_illustration_max_height">312dp</dimen>
<dimen name="sud_content_illustration_max_width">312dp</dimen>
<dimen name="sud_content_illustration_min_height">172dp</dimen>
<dimen name="sud_content_illustration_min_width">172dp</dimen>
<dimen name="sud_content_illustration_padding_vertical">24dp</dimen>
<!-- Loading content styles -->
<dimen name="sud_content_loading_frame_padding_top">0dp</dimen>
<dimen name="sud_content_loading_frame_padding_start">40dp</dimen>
<dimen name="sud_content_loading_frame_padding_end">40dp</dimen>
<dimen name="sud_content_loading_frame_padding_bottom">144dp</dimen>
<dimen name="sud_loading_header_height">274dp</dimen>
<!-- Glif Content info text -->
<dimen name="sud_content_info_text_size">16sp</dimen>
<dimen name="sud_content_info_line_spacing_extra">3sp</dimen>
<dimen name="sud_content_info_icon_size">18dp</dimen>
<dimen name="sud_content_info_icon_margin_end">16dp</dimen>
<dimen name="sud_content_info_padding_top">0dp</dimen>
<dimen name="sud_content_info_padding_bottom">0dp</dimen>
<!-- Margin on the start to offset for margin in the drawable -->
<dimen name="sud_radio_button_margin_start">-6dp</dimen>
<dimen name="sud_radio_button_margin_top">0dp</dimen>
<dimen name="sud_radio_button_margin_bottom">12dp</dimen>
<dimen name="sud_radio_button_padding_start">18dp</dimen>
<dimen name="sud_radio_button_line_spacing_extra">5sp</dimen>
<!-- Card layout (for tablets) -->
<dimen name="sud_card_corner_radius">2dp</dimen>
<dimen name="sud_card_elevation">5dp</dimen>
<dimen name="sud_card_land_header_text_margin_top">128dp</dimen>
<dimen name="sud_card_port_margin_sides">56dp</dimen>
<dimen name="sud_card_title_padding_end">0dp</dimen>
<dimen name="sud_card_title_padding_start">0dp</dimen>
<dimen name="sud_card_title_padding_top">16dp</dimen>
<dimen name="sud_card_title_padding_bottom">28dp</dimen>
<!-- Decor view (illustration or the header without illustration) -->
<dimen name="sud_decor_padding_top">0dp</dimen>
<!-- GLIF card layout (for tablets) -->
<dimen name="sud_glif_card_elevation">5dp</dimen>
<dimen name="sud_glif_card_width">560dp</dimen>
<dimen name="sud_glif_card_height">672dp</dimen>
<!-- Header layout (for phones) -->
<dimen name="sud_title_area_elevation">3dp</dimen>
<!-- Hack to force the header (and its shadow) to be drawn on top of the list contents -->
<dimen name="sud_header_elevation_hack">1dp</dimen>
<dimen name="sud_header_title_size">24sp</dimen>
<dimen name="sud_header_title_margin_bottom">16dp</dimen>
<dimen name="sud_header_title_padding_top">16dp</dimen>
<dimen name="sud_header_title_padding_bottom">2dp</dimen>
<!-- This is the extra spacing required to make the leading exactly 32sp -->
<dimen name="sud_header_title_line_spacing_extra">3.67sp</dimen>
<dimen name="sud_glif_header_title_margin_top">16dp</dimen>
<dimen name="sud_glif_header_title_margin_bottom">2dp</dimen>
<dimen name="sud_header_container_margin_bottom">0dp</dimen>
<!-- Account information -->
<dimen name="sud_account_name_text_size">14sp</dimen>
<dimen name="sud_account_avatar_margin_end">8dp</dimen>
<dimen name="sud_account_avatar_max_height">24dp</dimen>
<!-- This value leverages sud_description_glif_margin_top -->
<dimen name="sud_glif_description_margin_top">3dp</dimen>
<dimen name="sud_glif_description_margin_bottom">12dp</dimen>
<dimen name="sud_glif_icon_max_height">32dp</dimen>
<!-- Illustration -->
<item name="sud_illustration_aspect_ratio" format="float" type="dimen">2.22</item>
<!-- Footer Button-->
<dimen name="sud_glif_footer_button_text_size">14sp</dimen>
<dimen name="sud_glif_primary_button_button_margin_start">0dp</dimen>
<dimen name="sud_glif_secondary_button_button_margin_start">0dp</dimen>
<!-- Items -->
<dimen name="sud_items_icon_container_width">48dp</dimen>
<!-- TODO: Remove it when all attributes being used migrated into new one. -->
<dimen name="sud_items_padding_vertical">15dp</dimen>
<dimen name="sud_items_verbose_padding_vertical">20dp</dimen>
<dimen name="sud_items_title_text_size">16sp</dimen>
<dimen name="sud_items_summary_text_size">14sp</dimen>
<dimen name="sud_items_summary_margin_top">4dp</dimen>
<dimen name="sud_items_padding_top">15dp</dimen>
<dimen name="sud_items_padding_bottom">15dp</dimen>
<!-- General Material You -->
<dimen name="sud_glif_land_middle_horizontal_spacing_material_you">48dp</dimen>
<dimen name="sud_glif_content_padding_top_material_you">8dp</dimen>
<!-- Content styles Material You -->
<dimen name="sud_content_text_size_material_you">18sp</dimen>
<!-- Glif Content info text Material You -->
<dimen name="sud_content_info_text_size_material_you">16sp</dimen>
<dimen name="sud_content_info_line_spacing_extra_material_you">8sp</dimen>
<dimen name="sud_content_info_icon_size_material_you">18dp</dimen>
<dimen name="sud_content_info_icon_margin_end_material_you">16dp</dimen>
<dimen name="sud_content_info_padding_top_material_you">16dp</dimen>
<dimen name="sud_content_info_padding_bottom_material_you">16dp</dimen>
<!-- Header layout Material You (for phones) -->
<dimen name="sud_header_title_max_size_material_you">36sp</dimen>
<dimen name="sud_header_title_min_size_material_you">28sp</dimen>
<dimen name="sud_header_title_line_spacing_extra_material_you">8sp</dimen>
<!-- Page Margins Material You -->
<dimen name="sud_glif_margin_start_material_you">40dp</dimen>
<dimen name="sud_glif_margin_end_material_you">24dp</dimen>
<!-- Footer Button Material You-->
<dimen name="sud_footer_bar_button_radius_material_you">20dp</dimen>
<dimen name="sud_glif_button_min_height_material_you">48dp</dimen>
<dimen name="sud_glif_footer_button_text_size_material_you">14sp</dimen>
<dimen name="sud_glif_primary_button_button_margin_start_material_you">0dp</dimen>
<!-- Footer Bar Material You -->
<dimen name="sud_glif_footer_bar_padding_vertical_material_you">6dp</dimen>
<dimen name="sud_glif_footer_bar_padding_start_material_you">8dp</dimen>
<!-- Calculated by (sud_glif_margin_end - 4dp internal padding of button) -->
<dimen name="sud_glif_footer_bar_padding_end_material_you">20dp</dimen>
<dimen name="sud_glif_footer_bar_min_height_material_you">72dp</dimen>
<!-- Header Area Material You -->
<dimen name="sud_header_container_margin_bottom_material_you">24dp</dimen>
<dimen name="sud_glif_header_title_size_material_you">36sp</dimen>
<dimen name="sud_glif_header_title_margin_top_material_you">24dp</dimen>
<dimen name="sud_glif_header_title_margin_bottom_material_you">0dp</dimen>
<dimen name="sud_glif_description_text_size_material_you">18sp</dimen>
<dimen name="sud_glif_description_margin_top_material_you">24dp</dimen>
<dimen name="sud_glif_description_margin_bottom_material_you">0dp</dimen>
<dimen name="sud_glif_icon_margin_top_material_you">32dp</dimen>
<dimen name="sud_glif_icon_max_height_material_you">48dp</dimen>
<!-- Items Material You -->
<dimen name="sud_items_padding_top_material_you">16dp</dimen>
<dimen name="sud_items_padding_bottom_material_you">16dp</dimen>
<dimen name="sud_items_title_text_size_material_you">20sp</dimen>
<dimen name="sud_items_summary_text_size_material_you">14sp</dimen>
<dimen name="sud_items_summary_margin_top_material_you">4dp</dimen>
<dimen name="sud_items_min_height_material_you">72dp</dimen>
<!-- Progress bar -->
<dimen name="sud_progress_bar_margin_top_material_you">16dp</dimen>
<dimen name="sud_progress_bar_margin_bottom_material_you">-7dp</dimen>
<!-- Ignore UnusedResources: can be used by clients -->
<dimen name="sud_items_icon_divider_inset" tools:ignore="UnusedResources">88dp</dimen>
<!-- Ignore UnusedResources: can be used by clients -->
<dimen name="sud_items_text_divider_inset" tools:ignore="UnusedResources">40dp</dimen>
<!-- Ignore UnusedResources: can be used by clients -->
<dimen name="sud_items_glif_icon_divider_inset" tools:ignore="UnusedResources">72dp</dimen>
<!-- Ignore UnusedResources: can be used by clients -->
<dimen name="sud_items_glif_text_divider_inset" tools:ignore="UnusedResources">24dp</dimen>
<!-- Extra padding in the bottom to compensate for difference between descent and (top) internal leading -->
<dimen name="sud_items_padding_bottom_extra">1dp</dimen>
<dimen name="sud_items_verbose_padding_bottom_extra">0dp</dimen>
<dimen name="sud_items_preferred_height">56dp</dimen>
<!-- Navigation bar -->
<!-- TODO: Move this dimen to gingerbread, or see if it should be in platform style as well -->
<dimen name="sud_navbar_button_drawable_padding" tools:ignore="UnusedResources">6dp</dimen>
<dimen name="sud_navbar_button_padding_sides">10dp</dimen>
<dimen name="sud_navbar_height">56dp</dimen>
<dimen name="sud_navbar_ic_intrinsic_size">24dp</dimen>
<dimen name="sud_navbar_padding_sides">24dp</dimen>
<dimen name="sud_navbar_text_size">16sp</dimen>
<!-- Progress bar -->
<!-- The margin to compensate for the padding built-in to the widget itself -->
<dimen name="sud_progress_bar_margin_vertical">-7dp</dimen>
<dimen name="sud_progress_bar_margin_top">-7dp</dimen>
<dimen name="sud_progress_bar_margin_bottom">-7dp</dimen>
<dimen name="sud_glif_progress_bar_margin_vertical">7dp</dimen>
<dimen name="sud_glif_progress_bar_padding">40dp</dimen>
<!-- Edit Text dimensions -->
<dimen name="sud_edit_text_min_height">56dp</dimen>
<dimen name="sud_edit_text_padding_horizontal">12dp</dimen>
<dimen name="sud_edit_text_corner_radius">28dp</dimen>
<!-- SwitchItem -->
<dimen name="sud_switch_padding_start">16dp</dimen>
<dimen name="sud_switch_padding_end">0dp</dimen>
<dimen name="sud_switch_padding_top">39dp</dimen>
<dimen name="sud_switch_divider_height">32dp</dimen>
<dimen name="sud_switch_divider_padding_top">36dp</dimen>
<dimen name="sud_switch_content_padding_end">16dp</dimen>
<!-- ExpandableSwithItem -->
<dimen name="sud_expand_arrow_drawable_padding">4dp</dimen>
<!-- SwitchBar -->
<!-- Minimum width of switch -->
<dimen name="sud_switch_min_width">52dp</dimen>
<!-- Margin of switch thumb -->
<dimen name="sud_switch_thumb_margin">4dp</dimen>
<!-- Size of switch thumb -->
<dimen name="sud_switch_thumb_size">20dp</dimen>
<!-- Width of switch track -->
<dimen name="sud_switch_track_width">52dp</dimen>
<!-- Height of switch track -->
<dimen name="sud_switch_track_height">28dp</dimen>
<!-- Radius of switch track -->
<dimen name="sud_switch_track_radius">35dp</dimen>
<!-- IconUniformityAppImageView -->
<!-- Set 0dp since we don't want shadow. -->
<dimen name="sud_icon_uniformity_elevation">0dp</dimen>
<!-- Embedded Activity -->
<dimen name="sud_glif_footer_padding_start_embedded_activity">24dp</dimen>
<dimen name="sud_glif_footer_padding_end_embedded_activity">24dp</dimen>
<dimen name="sud_glif_margin_start_embedded_activity">24dp</dimen>
<dimen name="sud_glif_margin_end_embedded_activity">24dp</dimen>
<dimen name="sud_glif_header_title_margin_top_embedded_activity">24dp</dimen>
<dimen name="sud_header_title_size_embedded_activity">44sp</dimen>
</resources>

View File

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:tools="http://schemas.android.com/tools">
<item name="sud_template" type="layout">@layout/sud_template_header</item>
<!-- Ignore UnusedResources: can be used by clients -->
<item name="sud_template_short" type="layout" tools:ignore="UnusedResources">@layout/sud_template_header_collapsed</item>
<item name="sud_list_template" type="layout">@layout/sud_list_template_header</item>
<!-- Ignore UnusedResources: can be used by clients -->
<item name="sud_list_template_short" type="layout" tools:ignore="UnusedResources">@layout/sud_list_template_header_collapsed</item>
<!-- Ignore UnusedResources: can be used by clients -->
<item name="sud_no_scroll_template" type="layout" tools:ignore="UnusedResources">@layout/sud_no_scroll_template_header</item>
<!-- Ignore UnusedResources: can be used by clients -->
<item name="sud_no_scroll_template_short" type="layout" tools:ignore="UnusedResources">@layout/sud_no_scroll_template_header_collapsed</item>
<item name="sud_glif_template" type="layout">@layout/sud_glif_template_compact</item>
<item name="sud_glif_embedded_template" type="layout">@layout/sud_glif_embedded_template_compact</item>
<item name="sud_glif_list_template" type="layout">@layout/sud_glif_list_template_compact</item>
<item name="sud_glif_list_embedded_template" type="layout">@layout/sud_glif_list_embedded_template_compact</item>
<!-- Ignore UnusedResources: can be used by clients -->
<item name="sud_glif_blank_template" type="layout" tools:ignore="UnusedResources">@layout/sud_glif_blank_template_compact</item>
<item name="sud_preference_recycler_view" type="layout">@layout/sud_preference_recycler_view_header</item>
<item name="sud_preference_template" type="layout">@layout/sud_preference_template_header</item>
<item name="sud_recycler_template" type="layout">@layout/sud_recycler_template_header</item>
<item
name="sud_recycler_template_short"
type="layout"
tools:ignore="UnusedResources">@layout/sud_recycler_template_header_collapsed</item>
<!-- Ignore UnusedResources: can be used by clients -->
<item name="sud_glif_preference_template" type="layout">@layout/sud_glif_blank_template_compact</item>
<item name="sud_glif_preference_embedded_template" type="layout">@layout/sud_glif_blank_embedded_template_compact</item>
<item name="sud_glif_recycler_template" type="layout">@layout/sud_glif_recycler_template_compact</item>
<item name="sud_glif_recycler_embedded_template" type="layout">@layout/sud_glif_recycler_embedded_template_compact</item>
<!-- The sud_glif_template_two_pane resource is same as sud_glif_template for Phone. -->
<item name="sud_glif_template_two_pane" type="layout">@layout/sud_glif_template_compact</item>
<item name="sud_glif_list_template_two_pane" type="layout">@layout/sud_glif_list_template_compact</item>
<item name="sud_glif_preference_template_two_pane" type="layout">@layout/sud_glif_blank_template_compact</item>
<item name="sud_glif_recycler_template_two_pane" type="layout">@layout/sud_glif_recycler_template_compact</item>
</resources>

File diff suppressed because it is too large Load Diff