Implement the battery tips cards.(1/2)
- Implement a tips card UI in Battery Usage. [Screenshot]: - Tips Card with thumbs-up/down feedback in dark mode https://screenshot.googleplex.com/3nRCFYvLTWfiYYT - Tips Card without feedback https://screenshot.googleplex.com/B7QGRJZAHzgWpCP - Tips Card in Force RTL layout https://screenshot.googleplex.com/8crQdj8ao26pKpH - Tips Card in light mode https://screenshot.googleplex.com/885aVvZm8xmhK2S [TODO]: - Add accessibility - Localization Bug: 291689623 Test: Manual Change-Id: I4443cdb21b3ba30900fc2f6fcc21c4c56dc1293f Merged-In: I4443cdb21b3ba30900fc2f6fcc21c4c56dc1293f
This commit is contained in:
@@ -373,6 +373,10 @@
|
||||
<dimen name="chartview_trapezoid_margin_start">1dp</dimen>
|
||||
<dimen name="chartview_trapezoid_margin_bottom">2dp</dimen>
|
||||
|
||||
<!-- Battery tips card view component -->
|
||||
<dimen name="battery_tips_card_corner_radius_small">4dp</dimen>
|
||||
<dimen name="battery_tips_card_corner_radius_normal">24dp</dimen>
|
||||
|
||||
<!-- Dimensions for Dream settings cards -->
|
||||
<dimen name="dream_item_min_column_width">174dp</dimen>
|
||||
<dimen name="dream_item_corner_radius">28dp</dimen>
|
||||
|
@@ -9650,6 +9650,24 @@
|
||||
<!-- Preference summary for battery usage list page[CHAR_LIMIT=50]-->
|
||||
<string name="app_battery_usage_summary">Set battery usage for apps</string>
|
||||
|
||||
<!-- Label of action button in battery tips card [CHAR LIMIT=NONE] -->
|
||||
<string name="battery_tips_card_action_button" translatable="false">Optimize</string>
|
||||
|
||||
<!-- Feedback card message in battery tips card [CHAR LIMIT=NONE] -->
|
||||
<string name="battery_tips_card_feedback_info" translatable="false">Is this message helpful?</string>
|
||||
|
||||
<!-- Title of battery tips: adaptive brightness [CHAR LIMIT=NONE] -->
|
||||
<string name="battery_tips_adaptive_brightness_title" translatable="false">Turn on adaptive brightness to extend battery life</string>
|
||||
|
||||
<!-- Summary of battery tips: adaptive brightness [CHAR LIMIT=NONE] -->
|
||||
<string name="battery_tips_adaptive_brightness_summary" translatable="false">It will help reduce your daily battery drain by 10%</string>
|
||||
|
||||
<!-- Title of battery tips: reduce screen timeout [CHAR LIMIT=NONE] -->
|
||||
<string name="battery_tips_screen_timeout_title" translatable="false">Reduce screen timeout to extend battery life</string>
|
||||
|
||||
<!-- Summary of battery tips: reduce screen timeout [CHAR LIMIT=NONE] -->
|
||||
<string name="battery_tips_screen_timeout_summary" translatable="false">It will help reduce your daily battery drain by 10%</string>
|
||||
|
||||
<!-- Filter title for battery unrestricted[CHAR_LIMIT=50]-->
|
||||
<string name="filter_battery_unrestricted_title">Unrestricted</string>
|
||||
|
||||
|
Reference in New Issue
Block a user