fix: 首次提交
This commit is contained in:
27
SettingsLib/BannerMessagePreference/res/values/attrs.xml
Normal file
27
SettingsLib/BannerMessagePreference/res/values/attrs.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2021 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>
|
||||
<declare-styleable name="BannerMessagePreference">
|
||||
<attr format="enum" name="attentionLevel">
|
||||
<enum name="high" value="0"/>
|
||||
<enum name="medium" value="1"/>
|
||||
<enum name="low" value="2"/>
|
||||
</attr>
|
||||
<attr format="string" name="subtitle" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
25
SettingsLib/BannerMessagePreference/res/values/colors.xml
Normal file
25
SettingsLib/BannerMessagePreference/res/values/colors.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2021 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>
|
||||
<color name="banner_background_attention_high">#FFDAD5</color> <!-- red card background -->
|
||||
<color name="banner_background_attention_medium">#F0E3A8</color> <!-- yellow card background -->
|
||||
<color name="banner_background_attention_low">#CFEBC0</color> <!-- green card background -->
|
||||
<color name="banner_accent_attention_high">#BB3322</color> <!-- red accent color -->
|
||||
<color name="banner_accent_attention_medium">#895900</color> <!-- yellow accent color -->
|
||||
<color name="banner_accent_attention_low">#1D7233</color> <!-- green accent color -->
|
||||
</resources>
|
||||
24
SettingsLib/BannerMessagePreference/res/values/strings.xml
Normal file
24
SettingsLib/BannerMessagePreference/res/values/strings.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2021 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:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- Content description of the dismiss button on a banner message for accessibility (not shown on the screen). [CHAR LIMIT=NONE] -->
|
||||
<string name="accessibility_banner_message_dismiss">Dismiss</string>
|
||||
</resources>
|
||||
|
||||
|
||||
30
SettingsLib/BannerMessagePreference/res/values/styles.xml
Normal file
30
SettingsLib/BannerMessagePreference/res/values/styles.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2020 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>
|
||||
<style name="Banner.Text.Title"
|
||||
parent="@android:style/TextAppearance.DeviceDefault.WindowTitle">
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
</style>
|
||||
|
||||
<style name="Banner.Text.Summary"
|
||||
parent="@android:style/TextAppearance.DeviceDefault">
|
||||
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user