diff options
author | Daniel Sandler <dsandler@android.com> | 2012-08-15 00:09:26 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2012-08-15 09:52:43 -0400 |
commit | 8e72c9e19cfb0b6c1463fa841f1dd02be8f3b4e1 (patch) | |
tree | e96bfb75bf13ec2fa65c8cf2c5af5518d16fa33b /packages/SystemUI/res | |
parent | f8d9e2fccdd9f2addeda852ad168eeb67a5f6626 (diff) | |
download | frameworks_base-8e72c9e19cfb0b6c1463fa841f1dd02be8f3b4e1.zip frameworks_base-8e72c9e19cfb0b6c1463fa841f1dd02be8f3b4e1.tar.gz frameworks_base-8e72c9e19cfb0b6c1463fa841f1dd02be8f3b4e1.tar.bz2 |
Quick settings come to all Android devices.
I mean, real soon now.
Change-Id: I9a15b49f271e7ae06eb48a402f58270d8adccbf4
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r-- | packages/SystemUI/res/drawable-nodpi/qs_coming_soon.png | bin | 0 -> 29933 bytes | |||
-rw-r--r-- | packages/SystemUI/res/layout-sw600dp/super_status_bar.xml | 8 | ||||
-rw-r--r-- | packages/SystemUI/res/layout/quick_settings.xml | 45 | ||||
-rw-r--r-- | packages/SystemUI/res/layout/super_status_bar.xml | 5 | ||||
-rw-r--r-- | packages/SystemUI/res/values-sw600dp-land/dimens.xml | 4 | ||||
-rw-r--r-- | packages/SystemUI/res/values-sw600dp/dimens.xml | 9 | ||||
-rw-r--r-- | packages/SystemUI/res/values/dimens.xml | 3 |
7 files changed, 64 insertions, 10 deletions
diff --git a/packages/SystemUI/res/drawable-nodpi/qs_coming_soon.png b/packages/SystemUI/res/drawable-nodpi/qs_coming_soon.png Binary files differnew file mode 100644 index 0000000..47c89b1 --- /dev/null +++ b/packages/SystemUI/res/drawable-nodpi/qs_coming_soon.png diff --git a/packages/SystemUI/res/layout-sw600dp/super_status_bar.xml b/packages/SystemUI/res/layout-sw600dp/super_status_bar.xml index 47c511c..b68632a 100644 --- a/packages/SystemUI/res/layout-sw600dp/super_status_bar.xml +++ b/packages/SystemUI/res/layout-sw600dp/super_status_bar.xml @@ -36,11 +36,17 @@ android:id="@+id/panel_holder" android:layout_width="match_parent" android:layout_height="match_parent" + android:layout_marginTop="@*android:dimen/status_bar_height" > <include layout="@layout/status_bar_expanded" android:layout_width="@dimen/notification_panel_width" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal|top" + android:layout_gravity="left|top" + /> + <include layout="@layout/quick_settings" + android:layout_width="@dimen/notification_panel_width" + android:layout_height="wrap_content" + android:layout_gravity="right|top" /> </com.android.systemui.statusbar.phone.PanelHolder> </com.android.systemui.statusbar.phone.StatusBarWindowView> diff --git a/packages/SystemUI/res/layout/quick_settings.xml b/packages/SystemUI/res/layout/quick_settings.xml new file mode 100644 index 0000000..a62a470 --- /dev/null +++ b/packages/SystemUI/res/layout/quick_settings.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source 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.statusbar.phone.PanelView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/settings_panel" + > + <ImageView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:scaleType="centerInside" + android:src="@drawable/qs_coming_soon" + android:padding="4dp" + android:background="#80000080" + /> + <LinearLayout android:id="@+id/handle" + android:layout_width="match_parent" + android:layout_height="@dimen/close_handle_height" + android:layout_gravity="bottom" + android:orientation="vertical" + > + <ImageView + android:layout_width="match_parent" + android:layout_height="@dimen/close_handle_height" + android:layout_gravity="bottom" + android:scaleType="fitXY" + android:src="@drawable/status_bar_close" + /> + </LinearLayout> +</com.android.systemui.statusbar.phone.PanelView>
\ No newline at end of file diff --git a/packages/SystemUI/res/layout/super_status_bar.xml b/packages/SystemUI/res/layout/super_status_bar.xml index ad905bd..ad6b8f4 100644 --- a/packages/SystemUI/res/layout/super_status_bar.xml +++ b/packages/SystemUI/res/layout/super_status_bar.xml @@ -36,11 +36,16 @@ android:id="@+id/panel_holder" android:layout_width="match_parent" android:layout_height="match_parent" + android:layout_marginTop="@*android:dimen/status_bar_height" > <include layout="@layout/status_bar_expanded" android:layout_width="match_parent" android:layout_height="wrap_content" /> + <include layout="@layout/quick_settings" + android:layout_width="match_parent" + android:layout_height="wrap_content" + /> </com.android.systemui.statusbar.phone.PanelHolder> </com.android.systemui.statusbar.phone.StatusBarWindowView> diff --git a/packages/SystemUI/res/values-sw600dp-land/dimens.xml b/packages/SystemUI/res/values-sw600dp-land/dimens.xml index afa0b20..c6c0719 100644 --- a/packages/SystemUI/res/values-sw600dp-land/dimens.xml +++ b/packages/SystemUI/res/values-sw600dp-land/dimens.xml @@ -19,8 +19,4 @@ <!-- Layout parameters for the notification panel --> <dimen name="notification_panel_margin_bottom">0dp</dimen> <dimen name="notification_panel_margin_left">32dp</dimen> - - <!-- Gravity for the notification panel --> - <!-- 0x33 = left|top --> - <integer name="notification_panel_layout_gravity">0x33</integer> </resources> diff --git a/packages/SystemUI/res/values-sw600dp/dimens.xml b/packages/SystemUI/res/values-sw600dp/dimens.xml index 2b5248f..b6faff3 100644 --- a/packages/SystemUI/res/values-sw600dp/dimens.xml +++ b/packages/SystemUI/res/values-sw600dp/dimens.xml @@ -21,11 +21,12 @@ <!-- Layout parameters for the notification panel --> <dimen name="notification_panel_margin_bottom">192dp</dimen> - <dimen name="notification_panel_margin_left">0dp</dimen> + <dimen name="notification_panel_margin_left">16dp</dimen> - <!-- Gravity for the notification panel --> - <!-- 0x33 = center_horizontal|top --> - <integer name="notification_panel_layout_gravity">0x31</integer> + <!-- Gravity for the notification & quick settings panels --> + <!-- 0x33 = left|top ; 0x35 = right|top --> + <integer name="notification_panel_layout_gravity">0x33</integer> + <integer name="settings_panel_layout_gravity">0x35</integer> <!-- Diameter of outer shape drawable shown in navbar search--> <dimen name="navbar_search_outerring_diameter">430dip</dimen> diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 8204e95..9539373 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -158,9 +158,10 @@ <dimen name="notification_panel_margin_bottom">0dp</dimen> <dimen name="notification_panel_margin_left">0dp</dimen> - <!-- Gravity for the notification panel --> + <!-- Gravity for the notification & quick settings panels --> <!-- 0x37 = fill_horizontal|top --> <integer name="notification_panel_layout_gravity">0x37</integer> + <integer name="settings_panel_layout_gravity">0x37</integer> <!-- Height of the carrier/wifi name label --> <dimen name="carrier_label_height">24dp</dimen> |