Redesigned system bar and quick settings panel.

Change-Id: Ie26767a8c25af64809cf2fd1d8364791cb7e55ed
This commit is contained in:
Daniel Sandler
2010-08-31 14:16:13 -04:00
parent 1770b87289
commit d39e388e6d
103 changed files with 480 additions and 291 deletions

View File

@ -18,12 +18,12 @@
*/
-->
<resources>
<dimen name="status_bar_height">50dip</dimen>
<dimen name="status_bar_height">48dip</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_icon_size">50dip</dimen>
<dimen name="status_bar_icon_size">48dip</dimen>
<!-- Margin at the edge of the screen to ignore touch events for in the windowshade. -->
<!-- Margin for permanent screen decorations at the bottom. -->
<dimen name="screen_margin_bottom">50dip</dimen>
<dimen name="screen_margin_bottom">48dip</dimen>
<!-- Default height of a key in the password keyboard for alpha -->
<dimen name="password_keyboard_key_height_alpha">0.35in</dimen>

View File

@ -27,7 +27,6 @@
</style>
<style name="TextAppearance.StatusBar.Icon">
<item name="android:textStyle">bold</item>
</style>
<style name="TextAppearance.StatusBar.EventContent">
<item name="android:textColor">?android:attr/textColorPrimary</item>

View File

@ -5,6 +5,8 @@
>
<uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.GET_TASKS" />
<application

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 863 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 863 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 953 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 595 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 861 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 816 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 376 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

View File

@ -1,30 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/res/drawable/stat_sys_battery.xml
**
** Copyright 2007, 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.
*/
-->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="1" android:drawable="@drawable/battery_0" />
<item android:maxLevel="5" android:drawable="@drawable/battery_5" />
<item android:maxLevel="10" android:drawable="@drawable/battery_10" />
<item android:maxLevel="25" android:drawable="@drawable/battery_25" />
<item android:maxLevel="50" android:drawable="@drawable/battery_50" />
<item android:maxLevel="75" android:drawable="@drawable/battery_75" />
<item android:maxLevel="101" android:drawable="@drawable/battery_100" />
</level-list>

View File

@ -1,48 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/res/drawable/stat_sys_battery.xml
**
** Copyright 2007, 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.
*/
-->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="25">
<animation-list android:oneshot="false">
<item android:drawable="@drawable/battery_0" android:duration="1000" />
<item android:drawable="@drawable/battery_25" android:duration="1000" />
</animation-list>
</item>
<item android:maxLevel="50">
<animation-list android:oneshot="false">
<item android:drawable="@drawable/battery_25" android:duration="1000" />
<item android:drawable="@drawable/battery_50" android:duration="1000" />
</animation-list>
</item>
<item android:maxLevel="75">
<animation-list android:oneshot="false">
<item android:drawable="@drawable/battery_50" android:duration="1000" />
<item android:drawable="@drawable/battery_75" android:duration="1000" />
</animation-list>
</item>
<item android:maxLevel="92">
<animation-list android:oneshot="false">
<item android:drawable="@drawable/battery_75" android:duration="1000" />
<item android:drawable="@drawable/battery_100" android:duration="1000" />
</animation-list>
</item>
<item android:maxLevel="101" android:drawable="@drawable/battery_100" />
</level-list>

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 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.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/ic_sysbar_press_bg" />
<item android:drawable="@drawable/ic_sysbar_default_bg" />
</selector>

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/res/drawable/stat_sys_battery.xml
**
** Copyright 2007, 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.
*/
-->
<animation-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/signal_scan1" android:duration="500" />
<item android:drawable="@drawable/signal_scan2" android:duration="500" />
<item android:drawable="@drawable/signal_scan3" android:duration="500" />
<item android:drawable="@drawable/signal_scan4" android:duration="500" />
<item android:drawable="@drawable/signal_scan3" android:duration="500" />
<item android:drawable="@drawable/signal_scan2" android:duration="500" />
</animation-list>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/res/drawable/stat_sys_battery.xml
**
** Copyright 2007, 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.
*/
-->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="01" android:drawable="@drawable/sysbar_battery_0" />
<item android:maxLevel="10" android:drawable="@drawable/sysbar_battery_10" />
<item android:maxLevel="20" android:drawable="@drawable/sysbar_battery_20" />
<item android:maxLevel="30" android:drawable="@drawable/sysbar_battery_30" />
<item android:maxLevel="40" android:drawable="@drawable/sysbar_battery_40" />
<item android:maxLevel="50" android:drawable="@drawable/sysbar_battery_50" />
<item android:maxLevel="60" android:drawable="@drawable/sysbar_battery_60" />
<item android:maxLevel="70" android:drawable="@drawable/sysbar_battery_70" />
<item android:maxLevel="80" android:drawable="@drawable/sysbar_battery_80" />
<item android:maxLevel="90" android:drawable="@drawable/sysbar_battery_90" />
<item android:maxLevel="101" android:drawable="@drawable/sysbar_battery_100" />
</level-list>

View File

@ -18,12 +18,12 @@
*/
-->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="01" android:drawable="@drawable/wifi_0" />
<item android:maxLevel="25" android:drawable="@drawable/wifi_25" />
<item android:maxLevel="50" android:drawable="@drawable/wifi_50" />
<item android:maxLevel="75" android:drawable="@drawable/wifi_75" />
<item android:maxLevel="101" android:drawable="@drawable/wifi_100" />
</level-list>
<clip xmlns:android="http://schemas.android.com/apk/res/android"
android:clipOrientation="horizontal"
android:maxLevel="100"
android:gravity="left">
<level-list>
<item android:maxLevel="15" android:drawable="@drawable/sysbar_batterymini_red" />
<item android:maxLevel="101" android:drawable="@drawable/sysbar_batterymini_100" />
</level-list>
</clip>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/res/drawable/stat_sys_battery.xml
**
** Copyright 2007, 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.
*/
-->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="01" android:drawable="@drawable/sysbar_signal_0" />
<item android:maxLevel="10" android:drawable="@drawable/sysbar_signal_10" />
<item android:maxLevel="20" android:drawable="@drawable/sysbar_signal_20" />
<item android:maxLevel="30" android:drawable="@drawable/sysbar_signal_30" />
<item android:maxLevel="40" android:drawable="@drawable/sysbar_signal_40" />
<item android:maxLevel="50" android:drawable="@drawable/sysbar_signal_50" />
<item android:maxLevel="60" android:drawable="@drawable/sysbar_signal_60" />
<item android:maxLevel="70" android:drawable="@drawable/sysbar_signal_70" />
<item android:maxLevel="80" android:drawable="@drawable/sysbar_signal_80" />
<item android:maxLevel="90" android:drawable="@drawable/sysbar_signal_90" />
<item android:maxLevel="101" android:drawable="@drawable/sysbar_signal_100" />
</level-list>

View File

@ -18,11 +18,8 @@
*/
-->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="01" android:drawable="@drawable/signal_0" />
<item android:maxLevel="25" android:drawable="@drawable/signal_25" />
<item android:maxLevel="50" android:drawable="@drawable/signal_50" />
<item android:maxLevel="75" android:drawable="@drawable/signal_75" />
<item android:maxLevel="101" android:drawable="@drawable/signal_100" />
</level-list>
<clip xmlns:android="http://schemas.android.com/apk/res/android"
android:clipOrientation="horizontal"
android:gravity="right"
android:maxLevel="100"
android:drawable="@drawable/sysbar_signalmini_100" />

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/res/drawable/stat_sys_battery.xml
**
** Copyright 2007, 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.
*/
-->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="01" android:drawable="@drawable/sysbar_signal_0" />
<item android:maxLevel="10" android:drawable="@drawable/sysbar_signal_10" />
<item android:maxLevel="20" android:drawable="@drawable/sysbar_signal_20" />
<item android:maxLevel="30" android:drawable="@drawable/sysbar_signal_30" />
<item android:maxLevel="40" android:drawable="@drawable/sysbar_signal_40" />
<item android:maxLevel="50" android:drawable="@drawable/sysbar_signal_50" />
<item android:maxLevel="60" android:drawable="@drawable/sysbar_signal_60" />
<item android:maxLevel="70" android:drawable="@drawable/sysbar_signal_70" />
<item android:maxLevel="80" android:drawable="@drawable/sysbar_signal_80" />
<item android:maxLevel="90" android:drawable="@drawable/sysbar_signal_90" />
<item android:maxLevel="101" android:drawable="@drawable/sysbar_signal_100" />
</level-list>

View File

@ -18,12 +18,8 @@
*/
-->
<animation-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/wifi_scan1" android:duration="500" />
<item android:drawable="@drawable/wifi_scan2" android:duration="500" />
<item android:drawable="@drawable/wifi_scan3" android:duration="500" />
<item android:drawable="@drawable/wifi_scan4" android:duration="500" />
<item android:drawable="@drawable/wifi_scan3" android:duration="500" />
<item android:drawable="@drawable/wifi_scan2" android:duration="500" />
</animation-list>
<clip xmlns:android="http://schemas.android.com/apk/res/android"
android:clipOrientation="horizontal"
android:gravity="right"
android:maxLevel="100"
android:drawable="@drawable/sysbar_signalmini_100" />

View File

@ -35,18 +35,7 @@
android:paddingLeft="6dip"
android:gravity="center_vertical"
android:orientation="horizontal"
android:clickable="true"
android:onClick="notificationIconsClicked"
android:background="@drawable/status_bar_icon_tray"
>
<ImageView
class="com.android.systemui.statusbar.tablet.NotificationIconArea$MoreView"
android:id="@+id/expand"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/status_bar_expand"
android:onClick="notificationIconsClicked"
/>
<view
class="com.android.systemui.statusbar.tablet.NotificationIconArea$IconLayout"
android:id="@+id/icons"
@ -57,10 +46,19 @@
<view
class="com.android.systemui.statusbar.tablet.NotificationIconArea$DraggerView"
android:id="@+id/handle"
android:layout_width="24dip"
android:layout_width="32dip"
android:layout_height="match_parent"
android:background="@drawable/sysbar_hidenotification_handle"
android:layout_marginLeft="8dip"
/>
<ImageView
class="com.android.systemui.statusbar.tablet.NotificationIconArea$MoreView"
android:id="@+id/expand"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_sysbar_open"
android:onClick="notificationIconsClicked"
/>
</com.android.systemui.statusbar.tablet.NotificationIconArea>
@ -101,7 +99,7 @@
</LinearLayout>
<include layout="@layout/status_bar_center"
android:layout_width="160dip"
android:layout_width="256dip"
android:layout_height="match_parent"
android:layout_centerInParent="true"
/>
@ -110,16 +108,18 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toLeftOf="@+id/recent"
android:src="@drawable/status_bar_menu"
android:src="@drawable/ic_sysbar_menu"
android:background="@drawable/ic_sysbar_icon_bg"
android:paddingLeft="4dip"
android:paddingRight="4dip"
systemui:keyCode="82"
/>
<Button android:id="@+id/recent"
<ImageButton android:id="@+id/recent"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toLeftOf="@+id/home"
android:background="@drawable/status_bar_recent"
android:src="@drawable/ic_sysbar_recent"
android:background="@drawable/ic_sysbar_icon_bg"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:onClick="recentButtonClicked"
@ -127,10 +127,11 @@
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/home"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toLeftOf="@+id/back"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:layout_toLeftOf="@+id/back"
android:src="@drawable/status_bar_home"
android:src="@drawable/ic_sysbar_home"
android:background="@drawable/ic_sysbar_icon_bg"
systemui:keyCode="3"
/>
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/back"
@ -139,7 +140,8 @@
android:layout_alignParentRight="true"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:src="@drawable/status_bar_back"
android:src="@drawable/ic_sysbar_back"
android:background="@drawable/ic_sysbar_icon_bg"
systemui:keyCode="4"
/>
</RelativeLayout>

View File

@ -18,7 +18,7 @@
<RelativeLayout android:id="@+id/systemInfo"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
android:layout_width="160dip"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:clickable="true"
@ -38,17 +38,35 @@
/>
<ImageView
android:id="@+id/battery"
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_width="64dip"
android:layout_height="16dip"
android:layout_toLeftOf="@id/clock"
android:src="@drawable/battery"
android:layout_centerInParent="true"
android:background="@drawable/sysbar_minimeter_bg"
/>
<ImageView
android:id="@+id/signal"
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_width="64dip"
android:layout_height="16dip"
android:layout_toRightOf="@id/clock"
android:src="@drawable/signal"
android:layout_centerInParent="true"
android:background="@drawable/sysbar_minimeter_bg"
/>
<ImageView
android:id="@+id/battery_icon"
android:layout_height="30dip"
android:layout_width="30dip"
android:layout_toLeftOf="@id/battery"
android:layout_centerInParent="true"
android:src="@drawable/ic_sysbar_battery_mini"
/>
<ImageView
android:id="@+id/signal_icon"
android:layout_height="30dip"
android:layout_width="30dip"
android:layout_toRightOf="@id/signal"
android:layout_centerInParent="true"
android:src="@drawable/ic_sysbar_wifi_mini"
/>
</RelativeLayout>

View File

@ -22,130 +22,187 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="#FF000000"
android:background="@drawable/sysbar_panel_bg"
android:orientation="vertical"
android:paddingLeft="70dip"
android:paddingRight="120dip"
>
<TextView android:id="@+id/settings_button"
style="?android:attr/textAppearance"
<!-- top row: quick settings buttons -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_marginTop="2dip"
android:layout_marginBottom="1dip"
android:layout_marginRight="10dip"
android:padding="8dip"
android:textSize="20sp"
android:text="@string/system_panel_settings_button"
/>
android:layout_height="64dip"
android:orientation="horizontal"
android:gravity="center"
>
<ImageButton android:id="@+id/brightness"
android:layout_width="90dip"
android:layout_height="64dip"
android:src="@drawable/ic_sysbar_brightness"
android:background="@drawable/sysbar_toggle_bg_off"
/>
<ImageButton android:id="@+id/sound"
android:layout_width="90dip"
android:layout_height="64dip"
android:layout_marginLeft="8dip"
android:src="@drawable/ic_sysbar_sound_on"
android:background="@drawable/sysbar_toggle_bg_off"
/>
<ImageButton android:id="@+id/orientation"
android:layout_width="90dip"
android:layout_height="64dip"
android:layout_marginLeft="8dip"
android:src="@drawable/ic_sysbar_rotate_on"
android:background="@drawable/sysbar_toggle_bg_off"
/>
<ImageButton android:id="@+id/airplane"
android:layout_width="90dip"
android:layout_height="64dip"
android:layout_marginLeft="8dip"
android:src="@drawable/ic_sysbar_airplane_on"
android:background="@drawable/sysbar_toggle_bg_off"
/>
<ImageButton android:id="@+id/gps"
android:layout_width="90dip"
android:layout_height="64dip"
android:layout_marginLeft="8dip"
android:src="@drawable/ic_sysbar_gps_on"
android:background="@drawable/sysbar_toggle_bg_off"
/>
<ImageButton android:id="@+id/bluetooth"
android:layout_width="90dip"
android:layout_height="64dip"
android:layout_marginLeft="8dip"
android:src="@drawable/ic_sysbar_bluetooth_on"
android:background="@drawable/sysbar_toggle_bg_off"
/>
</LinearLayout>
<!-- main row: meters, clock -->
<RelativeLayout
android:padding="8dip"
android:layout_width="match_parent"
android:layout_height="192dip"
>
<RelativeLayout
android:layout_width="256dip"
android:layout_height="192dip"
android:layout_alignParentLeft="true"
android:layout_marginLeft="48dip"
>
<ImageView android:id="@+id/battery_meter"
android:layout_width="256dip"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:scaleType="centerCrop"
android:src="@drawable/sysbar_battery"
/>
<TextView android:id="@+id/battery_info"
style="@style/TextAppearance.StatusBar.SystemPanel"
android:layout_width="match_parent"
android:layout_height="24dip"
android:gravity="center"
android:layout_above="@id/battery_meter"
/>
</RelativeLayout>
<com.android.systemui.statusbar.Clock
style="@style/TextAppearance.StatusBar.SystemPanel"
android:id="@+id/clock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textSize="50sp"
android:textStyle="normal"
android:textColor="#FFFFFFFF"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
/>
<RelativeLayout
android:layout_width="256dip"
android:layout_height="192dip"
android:layout_alignParentRight="true"
android:layout_marginRight="48dip"
>
<ImageView android:id="@+id/signal_meter"
android:layout_width="256dip"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:scaleType="centerCrop"
android:src="@drawable/sysbar_signal"
/>
<TextView android:id="@+id/signal_info"
style="@style/TextAppearance.StatusBar.SystemPanel"
android:layout_width="match_parent"
android:layout_height="24dip"
android:gravity="center"
android:layout_above="@id/signal_meter"
/>
</RelativeLayout>
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="8dip"
android:layout_marginLeft="8dip"
android:src="@drawable/ic_sysbar_battery_on"
/>
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="8dip"
android:layout_marginRight="8dip"
android:src="@drawable/ic_sysbar_wifi_on"
/>
</RelativeLayout>
<!-- bottom row: transient indicators, settings button -->
<View
android:layout_width="match_parent"
android:layout_height="1sp"
android:background="@android:drawable/divider_horizontal_dark"
/>
<LinearLayout
android:padding="8dip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
>
<ImageButton android:id="@+id/brightness"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/system_panel_brightness_default"
android:background="@drawable/button_frame"
/>
<ImageButton android:id="@+id/sound"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dip"
android:src="@drawable/system_panel_sound_default"
android:background="@drawable/button_frame"
/>
<ImageButton android:id="@+id/orientation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dip"
android:src="@drawable/system_panel_orientation_default"
android:background="@drawable/button_frame"
/>
<ImageButton android:id="@+id/airplane"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dip"
android:src="@drawable/system_panel_airplane_default"
android:background="@drawable/button_frame"
/>
</LinearLayout>
<RelativeLayout
android:padding="8dip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="48dip"
>
<RelativeLayout
android:layout_width="120dip"
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:orientation="horizontal"
>
<ImageView android:id="@+id/battery_meter"
android:layout_width="96dip"
<!-- TODO: alarm -->
<!-- TODO: sync -->
<TextView android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:scaleType="centerCrop"
android:src="@drawable/battery"
/>
</LinearLayout>
<TextView android:id="@+id/battery_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_below="@id/battery_meter"
/>
</RelativeLayout>
<com.android.systemui.statusbar.Clock
style="@*android:style/TextAppearance.StatusBar.Icon"
android:id="@+id/clock"
<TextView android:id="@+id/settings_button"
style="@style/TextAppearance.StatusBar.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textSize="20sp"
android:textStyle="bold"
android:padding="2dip"
android:layout_centerHorizontal="true"
/>
<TextView android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/clock"
/>
<RelativeLayout
android:layout_width="120dip"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
>
<ImageView android:id="@+id/signal_meter"
android:layout_width="96dip"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:scaleType="centerCrop"
android:src="@drawable/signal"
/>
<TextView android:id="@+id/signal_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_below="@id/signal_meter"
/>
</RelativeLayout>
android:layout_centerVertical="true"
android:paddingRight="32dip"
android:paddingLeft="32dip"
android:textSize="20sp"
android:text="@string/system_panel_settings_button"
/>
<View
android:layout_height="match_parent"
android:layout_width="1sp"
android:layout_toLeftOf="@id/settings_button"
android:background="@*android:drawable/divider_vertical_dark"
/>
</RelativeLayout>
</com.android.systemui.statusbar.tablet.SystemPanel>

Some files were not shown because too many files have changed in this diff Show More