From aee0cb58e668dd9f64718b1c0d44a5ad6ff2a972 Mon Sep 17 00:00:00 2001 From: Tsung-Mao Fang Date: Tue, 29 Dec 2020 17:32:01 +0800 Subject: [PATCH] Rearrange settings in Display page Based on the Android S design, - Group similar settings in a category. - Set name for each category. - Remove the "advanced" button design. - Put settings into "Others" category" if settings are advanced/not useful. Test: Rebuilt rom and see the screen Bug: 174964139 Change-Id: I80194aa8deb7a554188290935a8c790b410c6e1d --- res/values/strings.xml | 11 ++ res/xml/display_settings_v2.xml | 219 +++++++++++++++++--------------- 2 files changed, 129 insertions(+), 101 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index b6693c0154e..fe15fdaea08 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -12562,4 +12562,15 @@ Allow access to contacts and call log? An untrusted Bluetooth device, %1$s, wants to access your contacts and call log. This includes data about incoming and outgoing calls.\n\nYou haven\u2019t connected to %2$s before. + + + Brightness + + Lock Display + + Visibility + + Color + + Others diff --git a/res/xml/display_settings_v2.xml b/res/xml/display_settings_v2.xml index aefd2ecbcf8..4edc335d434 100644 --- a/res/xml/display_settings_v2.xml +++ b/res/xml/display_settings_v2.xml @@ -19,125 +19,142 @@ xmlns:settings="http://schemas.android.com/apk/res-auto" android:key="display_settings_screen" android:title="@string/display_settings" - settings:keywords="@string/keywords_display" - settings:initialExpandedChildrenCount="5"> + settings:keywords="@string/keywords_display"> - - - + - + + + - + + - + - - + - + + - + - + - + - + + - + - + - + + - + - + - + - + - + - + + + + + + + + + + +