Update the storage summary header.

This changes it to now have a donut graph and reflects the new UI.
Finalized redlines are still pending, so there will be a follow
up patch to get everything aligned as per the mocks.

Bug: 33199077
Test: Settings Robo Tests
Change-Id: Ic12a77bd9be335af14f80886d1ecc24c82940e9b
This commit is contained in:
Daniel Nishi
2017-01-04 16:17:42 -08:00
parent 033dc469e5
commit b465005c29
10 changed files with 336 additions and 76 deletions

View File

@@ -111,6 +111,9 @@
<!-- Gestures settings -->
<color name="gestures_setting_background_color">#f5f5f5</color>
<!-- TODO: revert it after the SettingsShadowResources is globally finalized -->
<color name="status_bar_color">#3c3c3c</color>
<!-- Color for the background of the donut graph.-->
<color name="donut_background_grey">#ffd7d7d7</color>
</resources>

View File

@@ -307,4 +307,7 @@
<!-- Padding for the escalation card in normal dimens -->
<dimen name="support_escalation_card_padding_start">40dp</dimen>
<dimen name="support_escalation_card_padding_end">40dp</dimen>
<!-- Padding between the donut and the storage summary. -->
<dimen name="storage_summary_padding_end">16dp</dimen>
</resources>

View File

@@ -8019,4 +8019,14 @@
<!-- Preference label for the Files storage section. [CHAR LIMIT=50] -->
<string name="storage_files">Files</string>
<!-- Main settings screen item's title to go into the storage settings screen [CHAR LIMIT=25] -->
<string name="storage_settings_2" >Phone Storage</string>
<!-- Summary of a single storage volume used space. [CHAR LIMIT=24] -->
<string name="storage_size_large_alternate"><xliff:g id="number" example="128">^1</xliff:g><small><small> <xliff:g id="unit" example="KB">^2</xliff:g> used</small></small></string>
<!-- Summary of a single storage volume free space. [CHAR LIMIT=48]-->
<string name="storage_volume_free"><xliff:g id="total" example="32GB">%1$s</xliff:g> free</string>
<!-- The percent of storage used by a storage volume. Exposed inside of a donut graph. [CHAR LIMIT=4]-->
<string name="storage_percent_used"><xliff:g id="percent" example="50%">%1$s</xliff:g>%%</string>
</resources>

View File

@@ -437,4 +437,10 @@
</style>
<style name="AppActionPrimaryButton" parent="android:Widget.Material.Button.Colored"/>
<style name="FreeUpStorageButton">
<item name="android:buttonStyle">@android:style/Widget.Material.Button</item>
<item name="android:colorButtonNormal">#fff</item>
</style>
</resources>