summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeeti Paananen <veeti.paananen@rojekti.fi>2013-12-28 08:05:20 +0200
committerVeeti Paananen <veeti.paananen@rojekti.fi>2013-12-28 08:05:20 +0200
commitd427ead433f42a1648b9092e468a8e4839c00526 (patch)
treeffeeb42256d0a233ec6678ae77870ec0e2c11b43
parentc84a3b3c38a7ed94bf7988db4e957febbd1c703c (diff)
downloadandroid_frameworks_base-d427ead433f42a1648b9092e468a8e4839c00526.tar.gz
android_frameworks_base-d427ead433f42a1648b9092e468a8e4839c00526.tar.bz2
android_frameworks_base-d427ead433f42a1648b9092e468a8e4839c00526.zip
Add touch feedback to the clear all recents button
5 minutes of Photoshop™. Change-Id: Idf8c97cf08a192605208cbee6f2ae41e0798e8d1
-rw-r--r--packages/SystemUI/res/drawable-hdpi/ic_recents_clear_normal.pngbin0 -> 761 bytes
-rwxr-xr-xpackages/SystemUI/res/drawable-hdpi/ic_recents_clear_pressed.pngbin0 -> 3493 bytes
-rw-r--r--packages/SystemUI/res/drawable-mdpi/ic_recents_clear_normal.pngbin0 -> 695 bytes
-rw-r--r--packages/SystemUI/res/drawable-mdpi/ic_recents_clear_pressed.pngbin0 -> 3245 bytes
-rw-r--r--packages/SystemUI/res/drawable-xhdpi/ic_recents_clear_normal.pngbin0 -> 874 bytes
-rwxr-xr-xpackages/SystemUI/res/drawable-xhdpi/ic_recents_clear_pressed.pngbin0 -> 3958 bytes
-rw-r--r--packages/SystemUI/res/drawable-xxhdpi/ic_recents_clear_normal.pngbin0 -> 1267 bytes
-rwxr-xr-xpackages/SystemUI/res/drawable-xxhdpi/ic_recents_clear_pressed.pngbin0 -> 4117 bytes
-rw-r--r--packages/SystemUI/res/drawable/ic_recents_clear.xml20
-rw-r--r--packages/SystemUI/res/layout-land/status_bar_recent_panel.xml2
-rw-r--r--packages/SystemUI/res/layout/status_bar_recent_panel.xml2
11 files changed, 22 insertions, 2 deletions
diff --git a/packages/SystemUI/res/drawable-hdpi/ic_recents_clear_normal.png b/packages/SystemUI/res/drawable-hdpi/ic_recents_clear_normal.png
new file mode 100644
index 00000000000..54dde821682
--- /dev/null
+++ b/packages/SystemUI/res/drawable-hdpi/ic_recents_clear_normal.png
Binary files differ
diff --git a/packages/SystemUI/res/drawable-hdpi/ic_recents_clear_pressed.png b/packages/SystemUI/res/drawable-hdpi/ic_recents_clear_pressed.png
new file mode 100755
index 00000000000..0491933b7e8
--- /dev/null
+++ b/packages/SystemUI/res/drawable-hdpi/ic_recents_clear_pressed.png
Binary files differ
diff --git a/packages/SystemUI/res/drawable-mdpi/ic_recents_clear_normal.png b/packages/SystemUI/res/drawable-mdpi/ic_recents_clear_normal.png
new file mode 100644
index 00000000000..7cb52e3fc86
--- /dev/null
+++ b/packages/SystemUI/res/drawable-mdpi/ic_recents_clear_normal.png
Binary files differ
diff --git a/packages/SystemUI/res/drawable-mdpi/ic_recents_clear_pressed.png b/packages/SystemUI/res/drawable-mdpi/ic_recents_clear_pressed.png
new file mode 100644
index 00000000000..8520d61e92d
--- /dev/null
+++ b/packages/SystemUI/res/drawable-mdpi/ic_recents_clear_pressed.png
Binary files differ
diff --git a/packages/SystemUI/res/drawable-xhdpi/ic_recents_clear_normal.png b/packages/SystemUI/res/drawable-xhdpi/ic_recents_clear_normal.png
new file mode 100644
index 00000000000..b9afa444b90
--- /dev/null
+++ b/packages/SystemUI/res/drawable-xhdpi/ic_recents_clear_normal.png
Binary files differ
diff --git a/packages/SystemUI/res/drawable-xhdpi/ic_recents_clear_pressed.png b/packages/SystemUI/res/drawable-xhdpi/ic_recents_clear_pressed.png
new file mode 100755
index 00000000000..d6703678bb7
--- /dev/null
+++ b/packages/SystemUI/res/drawable-xhdpi/ic_recents_clear_pressed.png
Binary files differ
diff --git a/packages/SystemUI/res/drawable-xxhdpi/ic_recents_clear_normal.png b/packages/SystemUI/res/drawable-xxhdpi/ic_recents_clear_normal.png
new file mode 100644
index 00000000000..afdee8fbd2a
--- /dev/null
+++ b/packages/SystemUI/res/drawable-xxhdpi/ic_recents_clear_normal.png
Binary files differ
diff --git a/packages/SystemUI/res/drawable-xxhdpi/ic_recents_clear_pressed.png b/packages/SystemUI/res/drawable-xxhdpi/ic_recents_clear_pressed.png
new file mode 100755
index 00000000000..3959f1c4d60
--- /dev/null
+++ b/packages/SystemUI/res/drawable-xxhdpi/ic_recents_clear_pressed.png
Binary files differ
diff --git a/packages/SystemUI/res/drawable/ic_recents_clear.xml b/packages/SystemUI/res/drawable/ic_recents_clear.xml
new file mode 100644
index 00000000000..318507629f6
--- /dev/null
+++ b/packages/SystemUI/res/drawable/ic_recents_clear.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 The CyanogenMod 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_recents_clear_pressed" />
+ <item android:drawable="@drawable/ic_recents_clear_normal" />
+</selector> \ No newline at end of file
diff --git a/packages/SystemUI/res/layout-land/status_bar_recent_panel.xml b/packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
index a2a682b044a..dd3a41cd41b 100644
--- a/packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
+++ b/packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
@@ -62,7 +62,7 @@
android:layout_height="50dp"
android:scaleType="center"
android:layout_gravity="top|right"
- android:src="@drawable/ic_notify_clear" />
+ android:src="@drawable/ic_recents_clear" />
</FrameLayout>
diff --git a/packages/SystemUI/res/layout/status_bar_recent_panel.xml b/packages/SystemUI/res/layout/status_bar_recent_panel.xml
index b9a8fcca8f6..57f7a737158 100644
--- a/packages/SystemUI/res/layout/status_bar_recent_panel.xml
+++ b/packages/SystemUI/res/layout/status_bar_recent_panel.xml
@@ -66,7 +66,7 @@
android:layout_height="50dp"
android:scaleType="center"
android:layout_gravity="top|right"
- android:src="@drawable/ic_notify_clear" />
+ android:src="@drawable/ic_recents_clear" />
</FrameLayout>