From b3b442059acc0a14269c72ab4d485de8fa7e95c4 Mon Sep 17 00:00:00 2001 From: TheScarastic Date: Fri, 6 Dec 2019 16:44:18 +0530 Subject: sdm660-common: doze: Refactor whole code Change-Id: I14303556c66ea6bd3d111b5ce7e176711a676824 --- doze/res/layout/doze.xml | 6 +++--- doze/res/layout/switch_bar.xml | 19 ++++++++++--------- doze/res/values-night/colors.xml | 2 +- doze/res/values/colors.xml | 2 +- doze/res/values/styles.xml | 15 +++++++-------- doze/res/xml/doze_settings.xml | 12 ++++++------ 6 files changed, 28 insertions(+), 28 deletions(-) (limited to 'doze/res') diff --git a/doze/res/layout/doze.xml b/doze/res/layout/doze.xml index 941cdf6..e9f3c0f 100644 --- a/doze/res/layout/doze.xml +++ b/doze/res/layout/doze.xml @@ -18,9 +18,9 @@ --> + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> diff --git a/doze/res/layout/switch_bar.xml b/doze/res/layout/switch_bar.xml index 1bf6f6c..e02f196 100644 --- a/doze/res/layout/switch_bar.xml +++ b/doze/res/layout/switch_bar.xml @@ -19,24 +19,25 @@ android:layout_width="match_parent" android:layout_height="?android:attr/actionBarSize" android:background="@drawable/switchbar_background" - android:paddingStart="16dp" - android:paddingEnd="16dp" android:clickable="true" android:gravity="center" + android:paddingStart="16dp" + android:paddingEnd="16dp" android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent"> - + android:textSize="18sp" /> - #82000000 @android:color/black + #82000000 diff --git a/doze/res/values/colors.xml b/doze/res/values/colors.xml index bb85f62..ac4c4c3 100644 --- a/doze/res/values/colors.xml +++ b/doze/res/values/colors.xml @@ -16,6 +16,6 @@ @*android:color/material_grey_600 - #BFFFFFFF @android:color/white + #BFFFFFFF diff --git a/doze/res/values/styles.xml b/doze/res/values/styles.xml index 314665d..4ee4de4 100644 --- a/doze/res/values/styles.xml +++ b/doze/res/values/styles.xml @@ -6,9 +6,9 @@ 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. @@ -16,6 +16,7 @@ limitations under the License. --> + - + - + diff --git a/doze/res/xml/doze_settings.xml b/doze/res/xml/doze_settings.xml index 43a3c2d..dd6e19b 100644 --- a/doze/res/xml/doze_settings.xml +++ b/doze/res/xml/doze_settings.xml @@ -21,10 +21,10 @@ android:title="@string/tilt_sensor_title"> @@ -34,17 +34,17 @@ android:title="@string/proximity_sensor_title"> -- cgit v1.2.3