summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorBor-Yeh Shen <byshen@google.com>2011-09-16 15:17:43 +0800
committerBor-Yeh Shen <byshen@google.com>2011-09-16 17:27:46 +0800
commit9df7afb5cb4a6f25df2d12b9d695da82c6bb8b0b (patch)
treed1b0be6528f1d6b33affaee30be81e1fa9848c4a /res
parentc138187a52c3149b2a3d00b86363f5e55c474f9f (diff)
downloadandroid_packages_apps_Snap-9df7afb5cb4a6f25df2d12b9d695da82c6bb8b0b.tar.gz
android_packages_apps_Snap-9df7afb5cb4a6f25df2d12b9d695da82c6bb8b0b.tar.bz2
android_packages_apps_Snap-9df7afb5cb4a6f25df2d12b9d695da82c6bb8b0b.zip
Add a blue underline to the selected button
Change-Id: I6e10c1a36f0838d96ecf2df7979302e405cf8fcb
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/photoeditor_tab_selected_focused_holo.9.pngbin0 -> 147 bytes
-rw-r--r--res/drawable-hdpi/photoeditor_tab_selected_holo.9.pngbin0 -> 148 bytes
-rw-r--r--res/drawable-hdpi/photoeditor_tab_selected_pressed_holo.9.pngbin0 -> 147 bytes
-rw-r--r--res/drawable-hdpi/photoeditor_tab_unselected_focused_holo.9.pngbin0 -> 146 bytes
-rw-r--r--res/drawable-hdpi/photoeditor_tab_unselected_pressed_holo.9.pngbin0 -> 145 bytes
-rw-r--r--res/drawable-mdpi/photoeditor_tab_selected_focused_holo.9.pngbin0 -> 148 bytes
-rw-r--r--res/drawable-mdpi/photoeditor_tab_selected_holo.9.pngbin0 -> 151 bytes
-rw-r--r--res/drawable-mdpi/photoeditor_tab_selected_pressed_holo.9.pngbin0 -> 150 bytes
-rw-r--r--res/drawable-mdpi/photoeditor_tab_unselected_focused_holo.9.pngbin0 -> 150 bytes
-rw-r--r--res/drawable-mdpi/photoeditor_tab_unselected_pressed_holo.9.pngbin0 -> 155 bytes
-rw-r--r--res/drawable/photoeditor_toggle_button_background.xml16
-rw-r--r--res/drawable/photoeditor_toggle_button_highlight.9.pngbin182 -> 0 bytes
12 files changed, 13 insertions, 3 deletions
diff --git a/res/drawable-hdpi/photoeditor_tab_selected_focused_holo.9.png b/res/drawable-hdpi/photoeditor_tab_selected_focused_holo.9.png
new file mode 100644
index 000000000..673e3bf10
--- /dev/null
+++ b/res/drawable-hdpi/photoeditor_tab_selected_focused_holo.9.png
Binary files differ
diff --git a/res/drawable-hdpi/photoeditor_tab_selected_holo.9.png b/res/drawable-hdpi/photoeditor_tab_selected_holo.9.png
new file mode 100644
index 000000000..d57df98b5
--- /dev/null
+++ b/res/drawable-hdpi/photoeditor_tab_selected_holo.9.png
Binary files differ
diff --git a/res/drawable-hdpi/photoeditor_tab_selected_pressed_holo.9.png b/res/drawable-hdpi/photoeditor_tab_selected_pressed_holo.9.png
new file mode 100644
index 000000000..6278eef47
--- /dev/null
+++ b/res/drawable-hdpi/photoeditor_tab_selected_pressed_holo.9.png
Binary files differ
diff --git a/res/drawable-hdpi/photoeditor_tab_unselected_focused_holo.9.png b/res/drawable-hdpi/photoeditor_tab_unselected_focused_holo.9.png
new file mode 100644
index 000000000..294991d79
--- /dev/null
+++ b/res/drawable-hdpi/photoeditor_tab_unselected_focused_holo.9.png
Binary files differ
diff --git a/res/drawable-hdpi/photoeditor_tab_unselected_pressed_holo.9.png b/res/drawable-hdpi/photoeditor_tab_unselected_pressed_holo.9.png
new file mode 100644
index 000000000..aadc6f87b
--- /dev/null
+++ b/res/drawable-hdpi/photoeditor_tab_unselected_pressed_holo.9.png
Binary files differ
diff --git a/res/drawable-mdpi/photoeditor_tab_selected_focused_holo.9.png b/res/drawable-mdpi/photoeditor_tab_selected_focused_holo.9.png
new file mode 100644
index 000000000..c9972e74b
--- /dev/null
+++ b/res/drawable-mdpi/photoeditor_tab_selected_focused_holo.9.png
Binary files differ
diff --git a/res/drawable-mdpi/photoeditor_tab_selected_holo.9.png b/res/drawable-mdpi/photoeditor_tab_selected_holo.9.png
new file mode 100644
index 000000000..587337caf
--- /dev/null
+++ b/res/drawable-mdpi/photoeditor_tab_selected_holo.9.png
Binary files differ
diff --git a/res/drawable-mdpi/photoeditor_tab_selected_pressed_holo.9.png b/res/drawable-mdpi/photoeditor_tab_selected_pressed_holo.9.png
new file mode 100644
index 000000000..155c4fc75
--- /dev/null
+++ b/res/drawable-mdpi/photoeditor_tab_selected_pressed_holo.9.png
Binary files differ
diff --git a/res/drawable-mdpi/photoeditor_tab_unselected_focused_holo.9.png b/res/drawable-mdpi/photoeditor_tab_unselected_focused_holo.9.png
new file mode 100644
index 000000000..f0cecd183
--- /dev/null
+++ b/res/drawable-mdpi/photoeditor_tab_unselected_focused_holo.9.png
Binary files differ
diff --git a/res/drawable-mdpi/photoeditor_tab_unselected_pressed_holo.9.png b/res/drawable-mdpi/photoeditor_tab_unselected_pressed_holo.9.png
new file mode 100644
index 000000000..b1223fe3c
--- /dev/null
+++ b/res/drawable-mdpi/photoeditor_tab_unselected_pressed_holo.9.png
Binary files differ
diff --git a/res/drawable/photoeditor_toggle_button_background.xml b/res/drawable/photoeditor_toggle_button_background.xml
index 81c39ca83..e8e540694 100644
--- a/res/drawable/photoeditor_toggle_button_background.xml
+++ b/res/drawable/photoeditor_toggle_button_background.xml
@@ -16,9 +16,19 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
+ <!-- Non focused states -->
+ <item android:state_focused="false" android:state_selected="false" android:state_pressed="false" android:drawable="@android:color/transparent" />
+ <item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/photoeditor_tab_selected_holo" />
- <item android:state_selected="true" android:drawable="@drawable/photoeditor_toggle_button_highlight" />
- <item android:state_pressed="true" android:drawable="@drawable/photoeditor_toggle_button_highlight" />
- <item android:drawable="@android:color/transparent" />
+ <!-- Focused states -->
+ <item android:state_focused="true" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/photoeditor_tab_unselected_focused_holo" />
+ <item android:state_focused="true" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/photoeditor_tab_selected_focused_holo" />
+ <!-- Pressed (non focused) -->
+ <item android:state_focused="false" android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/photoeditor_tab_unselected_pressed_holo" />
+ <item android:state_focused="false" android:state_selected="true" android:state_pressed="true" android:drawable="@drawable/photoeditor_tab_selected_pressed_holo" />
+
+ <!-- Pressed (focused) -->
+ <item android:state_focused="true" android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/photoeditor_tab_unselected_pressed_holo" />
+ <item android:state_focused="true" android:state_selected="true" android:state_pressed="true" android:drawable="@drawable/photoeditor_tab_selected_pressed_holo" />
</selector>
diff --git a/res/drawable/photoeditor_toggle_button_highlight.9.png b/res/drawable/photoeditor_toggle_button_highlight.9.png
deleted file mode 100644
index add582a25..000000000
--- a/res/drawable/photoeditor_toggle_button_highlight.9.png
+++ /dev/null
Binary files differ