summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/layout
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-03-10 17:44:07 -0400
committerJohn Spurlock <jspurlock@google.com>2014-06-11 19:38:00 -0400
commit3332ba54ae85df14d761447d86d2aa19d448ce11 (patch)
tree34f932300125edb0e25a745fd1359741eab65800 /packages/SystemUI/res/layout
parent52769be3ea1fd005ea66b7b08888b3009ac0dadf (diff)
downloadframeworks_base-3332ba54ae85df14d761447d86d2aa19d448ce11.zip
frameworks_base-3332ba54ae85df14d761447d86d2aa19d448ce11.tar.gz
frameworks_base-3332ba54ae85df14d761447d86d2aa19d448ce11.tar.bz2
Heads-up notifications for low battery warnings.
Falls back to dialogs when heads-up are N/A. Add new ongoing notification if battery saver mode is active. Offer to start battery saver on warnings, if not already started. True up BatteryMeterView's levels to the latest threshold levels. 15% for first warning. Bug:13329308 Change-Id: Id8ad11a1997079ee7165ae003a8fa1c744462ab3
Diffstat (limited to 'packages/SystemUI/res/layout')
-rw-r--r--packages/SystemUI/res/layout/battery_low.xml54
1 files changed, 0 insertions, 54 deletions
diff --git a/packages/SystemUI/res/layout/battery_low.xml b/packages/SystemUI/res/layout/battery_low.xml
deleted file mode 100644
index 2373355..0000000
--- a/packages/SystemUI/res/layout/battery_low.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/* //device/apps/common/res/layout/keyguard.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.
-*/
--->
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/padding"
- android:orientation="vertical"
- android:gravity="center"
- android:padding="16dp"
- >
-
- <TextView android:id="@+id/subtitle"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textSize="18sp"
- android:textColor="#ffffffff"
- android:gravity="start"
- android:text="@string/battery_low_subtitle"
- />
-
- <TextView android:id="@+id/level_percent"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textSize="18sp"
- android:textColor="#ffffffff"
- android:gravity="start"
- android:paddingBottom="16dp"
- />
-
- <ImageView android:id="@+id/image"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/battery_low_battery"
- />
-
-</LinearLayout>
-
-