summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2010-09-02 11:59:41 -0400
committerDaniel Sandler <dsandler@google.com>2010-09-02 12:29:26 -0400
commitce70d91844d2e4fb987617d2924ae5b73096e5c3 (patch)
treed9b15ec61c4d9c1ba009c7f380bad75c331136b1 /packages/SystemUI/res
parentd39e388e6d7f19d6e8d620e449af4124efab1d0d (diff)
downloadframeworks_base-ce70d91844d2e4fb987617d2924ae5b73096e5c3.zip
frameworks_base-ce70d91844d2e4fb987617d2924ae5b73096e5c3.tar.gz
frameworks_base-ce70d91844d2e4fb987617d2924ae5b73096e5c3.tar.bz2
Lights out.
Not yet wired up to FLAG_FULLSCREEN; right now you must invoke it manually by longpressing on the clock area. Bug: 2905073 Change-Id: I43a005f2e4c08edb3673aef523bcaa1e088e8a71
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r--packages/SystemUI/res/anim/lights_out_in.xml25
-rw-r--r--packages/SystemUI/res/anim/lights_out_out.xml25
-rw-r--r--packages/SystemUI/res/anim/status_bar_in.xml25
-rw-r--r--packages/SystemUI/res/anim/status_bar_out.xml25
-rw-r--r--packages/SystemUI/res/layout-xlarge/status_bar.xml25
5 files changed, 121 insertions, 4 deletions
diff --git a/packages/SystemUI/res/anim/lights_out_in.xml b/packages/SystemUI/res/anim/lights_out_in.xml
new file mode 100644
index 0000000..0f0e7ce
--- /dev/null
+++ b/packages/SystemUI/res/anim/lights_out_in.xml
@@ -0,0 +1,25 @@
+<?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.
+-->
+
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ >
+ <translate android:fromYDelta="100%p" android:toYDelta="0"
+ android:duration="@android:integer/config_mediumAnimTime"
+ />
+ <alpha android:fromAlpha="0.0" android:toAlpha="1.0"
+ android:duration="@android:integer/config_mediumAnimTime"
+ />
+</set>
diff --git a/packages/SystemUI/res/anim/lights_out_out.xml b/packages/SystemUI/res/anim/lights_out_out.xml
new file mode 100644
index 0000000..cb895d9
--- /dev/null
+++ b/packages/SystemUI/res/anim/lights_out_out.xml
@@ -0,0 +1,25 @@
+<?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.
+-->
+
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ >
+ <translate android:toYDelta="100%p" android:fromYDelta="0"
+ android:duration="@android:integer/config_mediumAnimTime"
+ />
+ <alpha android:toAlpha="0.1" android:fromAlpha="1.0"
+ android:duration="@android:integer/config_mediumAnimTime"
+ />
+</set>
diff --git a/packages/SystemUI/res/anim/status_bar_in.xml b/packages/SystemUI/res/anim/status_bar_in.xml
new file mode 100644
index 0000000..48663f4
--- /dev/null
+++ b/packages/SystemUI/res/anim/status_bar_in.xml
@@ -0,0 +1,25 @@
+<?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.
+-->
+
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ >
+ <translate android:fromYDelta="-100%p" android:toYDelta="0"
+ android:duration="@android:integer/config_mediumAnimTime"
+ />
+ <alpha android:fromAlpha="0.0" android:toAlpha="1.0"
+ android:duration="@android:integer/config_mediumAnimTime"
+ />
+</set>
diff --git a/packages/SystemUI/res/anim/status_bar_out.xml b/packages/SystemUI/res/anim/status_bar_out.xml
new file mode 100644
index 0000000..b3f8953
--- /dev/null
+++ b/packages/SystemUI/res/anim/status_bar_out.xml
@@ -0,0 +1,25 @@
+<?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.
+-->
+
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ >
+ <translate android:toYDelta="-100%p" android:fromYDelta="0"
+ android:duration="@android:integer/config_mediumAnimTime"
+ />
+ <alpha android:toAlpha="0.0" android:fromAlpha="1.0"
+ android:duration="@android:integer/config_mediumAnimTime"
+ />
+</set>
diff --git a/packages/SystemUI/res/layout-xlarge/status_bar.xml b/packages/SystemUI/res/layout-xlarge/status_bar.xml
index 1d04f67..f4040d9 100644
--- a/packages/SystemUI/res/layout-xlarge/status_bar.xml
+++ b/packages/SystemUI/res/layout-xlarge/status_bar.xml
@@ -19,13 +19,16 @@
-->
<!-- android:background="@drawable/status_bar_closed_default_background" -->
-<RelativeLayout
+<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
android:background="@drawable/status_bar_background"
- android:focusable="true"
- android:descendantFocusability="afterDescendants"
>
+ <RelativeLayout
+ android:id="@+id/bar_contents"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ >
<com.android.systemui.statusbar.tablet.NotificationIconArea
android:id="@+id/notificationIcons"
@@ -144,5 +147,19 @@
android:background="@drawable/ic_sysbar_icon_bg"
systemui:keyCode="4"
/>
-</RelativeLayout>
+ </RelativeLayout>
+
+ <!-- It's curtains for you. -->
+ <ImageView
+ android:id="@+id/lights_out"
+ android:src="@drawable/ic_sysbar_lightsout"
+ android:gravity="center"
+ android:background="#FF000000"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="invisible"
+ android:clickable="true"
+ android:onClick="toggleLightsOut"
+ />
+</FrameLayout>