summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/layout
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2015-11-04 11:01:13 -0800
committerAdnan Begovic <adnan@cyngn.com>2015-11-23 13:22:37 -0800
commit8b59e888aa4236f29728785b1908c06989ec6f8a (patch)
tree0d37638ab669e10c6d96f644c537b59e89707555 /packages/SystemUI/res/layout
parent36a5c9978f8ea0f61353457074814eacc4a6057a (diff)
downloadframeworks_base-8b59e888aa4236f29728785b1908c06989ec6f8a.zip
frameworks_base-8b59e888aa4236f29728785b1908c06989ec6f8a.tar.gz
frameworks_base-8b59e888aa4236f29728785b1908c06989ec6f8a.tar.bz2
WIP: draggable quick settings tiles
Change-Id: I78105655b6811f13ef3c3e80980285387f43e52c Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages/SystemUI/res/layout')
-rw-r--r--packages/SystemUI/res/layout/qs_panel.xml2
-rw-r--r--packages/SystemUI/res/layout/qs_tile_top85
2 files changed, 86 insertions, 1 deletions
diff --git a/packages/SystemUI/res/layout/qs_panel.xml b/packages/SystemUI/res/layout/qs_panel.xml
index 1873168..c3d3c3e 100644
--- a/packages/SystemUI/res/layout/qs_panel.xml
+++ b/packages/SystemUI/res/layout/qs_panel.xml
@@ -23,7 +23,7 @@
android:paddingBottom="8dp"
android:elevation="2dp">
- <com.android.systemui.qs.QSPanel
+ <com.android.systemui.qs.QSDragPanel
android:id="@+id/quick_settings_panel"
android:background="#0000"
android:layout_width="match_parent"
diff --git a/packages/SystemUI/res/layout/qs_tile_top b/packages/SystemUI/res/layout/qs_tile_top
new file mode 100644
index 0000000..6d455ab
--- /dev/null
+++ b/packages/SystemUI/res/layout/qs_tile_top
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2015 The CyanogenMod Project
+
+ 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.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<com.android.systemui.qs.QSPanelTopView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:systemui="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/qs_panel_top"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingBottom="@dimen/qs_brightness_padding_top">
+
+ <!-- brightness -->
+ <include android:id="@+id/brightness_container"
+ layout="@layout/quick_settings_brightness_dialog"/>
+
+ <!-- delete target -->
+ <LinearLayout
+ android:id="@+id/delete_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:id="@+id/delete_target"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:src="@drawable/ic_delete"
+ />
+ </LinearLayout>
+
+ <!-- edit instructions & add target -->
+ <LinearLayout
+ android:id="@+id/edit_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp"
+ android:orientation="horizontal">
+
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:layout_weight="1"
+ android:textColor="@android:color/white"
+ android:text="@string/qs_tile_edit_header_instruction"
+ android:contentDescription="@null"/>
+
+ <ImageView
+ android:id="@+id/add_target"
+ android:layout_width="20dp"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:src="@drawable/ic_add_circle_qs"
+ />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/qs_toast"
+ android:layout_height="wrap_content"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp"
+ android:gravity="center_vertical"
+ android:layout_width="match_parent"
+ android:textColor="@color/quick_settings_toast_color"
+ android:visibility="invisible"/>
+
+
+</com.android.systemui.qs.QSPanelTopView>
+