summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2013-09-26 16:28:27 -0700
committerAdam Cohen <adamcohen@google.com>2013-09-26 16:28:48 -0700
commited0c999ac3f25ba2d7917a153d19079eb3499f73 (patch)
tree7fcc5a18c1b2b8332b3b05a3a1de2d7c306a87ad /res
parenta29f5047f004062a9fcee5fb8a4b90fdd56f7d0a (diff)
downloadandroid_packages_apps_Trebuchet-ed0c999ac3f25ba2d7917a153d19079eb3499f73.tar.gz
android_packages_apps_Trebuchet-ed0c999ac3f25ba2d7917a153d19079eb3499f73.tar.bz2
android_packages_apps_Trebuchet-ed0c999ac3f25ba2d7917a153d19079eb3499f73.zip
Adding pressed state to overview mode buttons (issue 10926631)
Change-Id: I9d670d4770e56921310d34dc08657a6e753ec5ee
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/ic_allapps_off.pngbin0 -> 10032 bytes
-rw-r--r--res/drawable-hdpi/ic_setting_pressed.pngbin0 -> 3099 bytes
-rw-r--r--res/drawable-hdpi/ic_wallpaper_pressed.pngbin0 -> 2474 bytes
-rw-r--r--res/drawable-hdpi/ic_widget_pressed.pngbin0 -> 2332 bytes
-rw-r--r--res/drawable-mdpi/ic_allapps_off.pngbin0 -> 6253 bytes
-rw-r--r--res/drawable-mdpi/ic_setting_pressed.pngbin0 -> 1868 bytes
-rw-r--r--res/drawable-mdpi/ic_wallpaper_pressed.pngbin0 -> 1574 bytes
-rw-r--r--res/drawable-mdpi/ic_widget_pressed.pngbin0 -> 1487 bytes
-rw-r--r--res/drawable-xhdpi/ic_allapps_off.pngbin0 -> 14175 bytes
-rw-r--r--res/drawable-xhdpi/ic_setting_pressed.pngbin0 -> 4524 bytes
-rw-r--r--res/drawable-xhdpi/ic_wallpaper_pressed.pngbin0 -> 3504 bytes
-rw-r--r--res/drawable-xhdpi/ic_widget_pressed.pngbin0 -> 3360 bytes
-rw-r--r--res/drawable-xxhdpi/ic_allapps_off.pngbin0 -> 17478 bytes
-rw-r--r--res/drawable-xxhdpi/ic_setting_pressed.pngbin0 -> 7113 bytes
-rw-r--r--res/drawable-xxhdpi/ic_wallpaper_pressed.pngbin0 -> 5546 bytes
-rw-r--r--res/drawable-xxhdpi/ic_widget_pressed.pngbin0 -> 5518 bytes
-rw-r--r--res/drawable/setting_button.xml21
-rw-r--r--res/drawable/wallpaper_button.xml21
-rw-r--r--res/drawable/widget_button.xml21
-rw-r--r--res/layout/overview_panel.xml6
20 files changed, 66 insertions, 3 deletions
diff --git a/res/drawable-hdpi/ic_allapps_off.png b/res/drawable-hdpi/ic_allapps_off.png
new file mode 100644
index 000000000..bbc4d7d03
--- /dev/null
+++ b/res/drawable-hdpi/ic_allapps_off.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_setting_pressed.png b/res/drawable-hdpi/ic_setting_pressed.png
new file mode 100644
index 000000000..fb58a4b12
--- /dev/null
+++ b/res/drawable-hdpi/ic_setting_pressed.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_wallpaper_pressed.png b/res/drawable-hdpi/ic_wallpaper_pressed.png
new file mode 100644
index 000000000..d104e5770
--- /dev/null
+++ b/res/drawable-hdpi/ic_wallpaper_pressed.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_widget_pressed.png b/res/drawable-hdpi/ic_widget_pressed.png
new file mode 100644
index 000000000..081f9f9ce
--- /dev/null
+++ b/res/drawable-hdpi/ic_widget_pressed.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_allapps_off.png b/res/drawable-mdpi/ic_allapps_off.png
new file mode 100644
index 000000000..e24b9d73b
--- /dev/null
+++ b/res/drawable-mdpi/ic_allapps_off.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_setting_pressed.png b/res/drawable-mdpi/ic_setting_pressed.png
new file mode 100644
index 000000000..846091f58
--- /dev/null
+++ b/res/drawable-mdpi/ic_setting_pressed.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_wallpaper_pressed.png b/res/drawable-mdpi/ic_wallpaper_pressed.png
new file mode 100644
index 000000000..273c48b3a
--- /dev/null
+++ b/res/drawable-mdpi/ic_wallpaper_pressed.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_widget_pressed.png b/res/drawable-mdpi/ic_widget_pressed.png
new file mode 100644
index 000000000..0a3e8838f
--- /dev/null
+++ b/res/drawable-mdpi/ic_widget_pressed.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_allapps_off.png b/res/drawable-xhdpi/ic_allapps_off.png
new file mode 100644
index 000000000..2b1333087
--- /dev/null
+++ b/res/drawable-xhdpi/ic_allapps_off.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_setting_pressed.png b/res/drawable-xhdpi/ic_setting_pressed.png
new file mode 100644
index 000000000..08aafc405
--- /dev/null
+++ b/res/drawable-xhdpi/ic_setting_pressed.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_wallpaper_pressed.png b/res/drawable-xhdpi/ic_wallpaper_pressed.png
new file mode 100644
index 000000000..ffff0531d
--- /dev/null
+++ b/res/drawable-xhdpi/ic_wallpaper_pressed.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_widget_pressed.png b/res/drawable-xhdpi/ic_widget_pressed.png
new file mode 100644
index 000000000..8bb387b88
--- /dev/null
+++ b/res/drawable-xhdpi/ic_widget_pressed.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_allapps_off.png b/res/drawable-xxhdpi/ic_allapps_off.png
new file mode 100644
index 000000000..b6a34a820
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_allapps_off.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_setting_pressed.png b/res/drawable-xxhdpi/ic_setting_pressed.png
new file mode 100644
index 000000000..a202a40fe
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_setting_pressed.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_wallpaper_pressed.png b/res/drawable-xxhdpi/ic_wallpaper_pressed.png
new file mode 100644
index 000000000..03324aa6c
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_wallpaper_pressed.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_widget_pressed.png b/res/drawable-xxhdpi/ic_widget_pressed.png
new file mode 100644
index 000000000..3d3670ed4
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_widget_pressed.png
Binary files differ
diff --git a/res/drawable/setting_button.xml b/res/drawable/setting_button.xml
new file mode 100644
index 000000000..4d66a1ac7
--- /dev/null
+++ b/res/drawable/setting_button.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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_focused="true" android:drawable="@drawable/ic_setting_pressed" />
+ <item android:state_pressed="true" android:drawable="@drawable/ic_setting_pressed" />
+ <item android:drawable="@drawable/ic_setting" />
+</selector>
diff --git a/res/drawable/wallpaper_button.xml b/res/drawable/wallpaper_button.xml
new file mode 100644
index 000000000..72da99d05
--- /dev/null
+++ b/res/drawable/wallpaper_button.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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_focused="true" android:drawable="@drawable/ic_wallpaper_pressed" />
+ <item android:state_pressed="true" android:drawable="@drawable/ic_wallpaper_pressed" />
+ <item android:drawable="@drawable/ic_wallpaper" />
+</selector>
diff --git a/res/drawable/widget_button.xml b/res/drawable/widget_button.xml
new file mode 100644
index 000000000..6936c87a0
--- /dev/null
+++ b/res/drawable/widget_button.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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_focused="true" android:drawable="@drawable/ic_widget_pressed" />
+ <item android:state_pressed="true" android:drawable="@drawable/ic_widget_pressed" />
+ <item android:drawable="@drawable/ic_widget" />
+</selector>
diff --git a/res/layout/overview_panel.xml b/res/layout/overview_panel.xml
index 751579324..e36004c4b 100644
--- a/res/layout/overview_panel.xml
+++ b/res/layout/overview_panel.xml
@@ -27,7 +27,7 @@
android:layout_height="wrap_content"
android:text="@string/wallpaper_button_text"
android:drawablePadding="4dp"
- android:drawableTop="@drawable/ic_wallpaper"
+ android:drawableTop="@drawable/wallpaper_button"
android:gravity="center_horizontal"
android:fontFamily="sans-serif-condensed"
android:textAllCaps="true"
@@ -42,7 +42,7 @@
android:text="@string/widget_button_text"
android:drawablePadding="4dp"
android:gravity="center_horizontal"
- android:drawableTop="@drawable/ic_widget"
+ android:drawableTop="@drawable/widget_button"
android:fontFamily="sans-serif-condensed"
android:textAllCaps="true"
android:textSize="12sp"/>
@@ -56,7 +56,7 @@
android:text="@string/settings_button_text"
android:drawablePadding="4dp"
android:gravity="center_horizontal"
- android:drawableTop="@drawable/ic_setting"
+ android:drawableTop="@drawable/setting_button"
android:fontFamily="sans-serif-condensed"
android:textAllCaps="true"
android:textSize="12sp" />