OSDN Git Service

enable touch feedback on notification title.
authorChris Wren <cwren@android.com>
Wed, 13 Jun 2012 17:35:43 +0000 (13:35 -0400)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Wed, 13 Jun 2012 19:10:55 +0000 (12:10 -0700)
Bug: 6646294
Change-Id: I8ef6fa104dabe280a45258181aa2ed597e433fca

packages/SystemUI/res/drawable/system_bar_notification_header_bg.xml [new file with mode: 0644]
packages/SystemUI/res/layout/system_bar_notification_panel_title.xml

diff --git a/packages/SystemUI/res/drawable/system_bar_notification_header_bg.xml b/packages/SystemUI/res/drawable/system_bar_notification_header_bg.xml
new file mode 100644 (file)
index 0000000..85f1ea2
--- /dev/null
@@ -0,0 +1,20 @@
+<?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.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_pressed="true"  android:drawable="@*android:drawable/list_selector_pressed_holo_dark" />
+    <item                               android:drawable="@*android:drawable/list_selector_disabled_holo_dark" />
+</selector>
index afe3b49..480d979 100644 (file)
@@ -18,7 +18,7 @@
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
     android:id="@+id/title_area"
-    android:background="@color/notification_panel_solid_background"
+    android:background="@drawable/system_bar_notification_header_bg"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:clickable="true"