summaryrefslogtreecommitdiff
path: root/doze/res/layout
diff options
context:
space:
mode:
authorTheScarastic <warabhishek@gmail.com>2019-12-06 16:44:18 +0530
committerMichael Bestas <mkbestas@lineageos.org>2020-12-20 18:55:01 +0200
commitb3b442059acc0a14269c72ab4d485de8fa7e95c4 (patch)
tree4b80a7b4d72dc9ff41905de86f8d7f9b24dcbb99 /doze/res/layout
parenta4a4a9e4296bd8891d67f8bf4e362239772f9859 (diff)
sdm660-common: doze: Refactor whole code
Change-Id: I14303556c66ea6bd3d111b5ce7e176711a676824
Diffstat (limited to 'doze/res/layout')
-rw-r--r--doze/res/layout/doze.xml6
-rw-r--r--doze/res/layout/switch_bar.xml19
2 files changed, 13 insertions, 12 deletions
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 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_height="match_parent"
- android:layout_width="match_parent">
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
<include layout="@layout/switch_bar" />
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">
- <TextView android:id="@+id/switch_text"
- android:layout_height="wrap_content"
+ <TextView
+ android:id="@+id/switch_text"
android:layout_width="0dp"
- android:layout_weight="1"
+ android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
- android:paddingStart="56dp"
- android:maxLines="2"
+ android:layout_weight="1"
android:ellipsize="end"
+ android:maxLines="2"
+ android:paddingStart="56dp"
+ android:textAlignment="viewStart"
android:textAppearance="@android:style/TextAppearance.Material.Title"
android:textColor="?android:attr/textColorPrimaryInverse"
- android:textSize="18sp"
- android:textAlignment="viewStart" />
+ android:textSize="18sp" />
<Switch
android:id="@android:id/switch_widget"