summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2012-08-15 10:21:03 -0700
committerDoris Liu <tianliu@google.com>2012-08-15 10:53:59 -0700
commitf6bb12a6840bede9e490e59ed4f7bbd6836d7f32 (patch)
tree1c14095af78fb31377a5711274f1f572413bb638 /res
parent1adebb6237ef1f14643971218dac6bd87196bf37 (diff)
downloadandroid_packages_apps_Gallery2-f6bb12a6840bede9e490e59ed4f7bbd6836d7f32.tar.gz
android_packages_apps_Gallery2-f6bb12a6840bede9e490e59ed4f7bbd6836d7f32.tar.bz2
android_packages_apps_Gallery2-f6bb12a6840bede9e490e59ed4f7bbd6836d7f32.zip
Adding content description to effect buttons
This CL adds content description/accessiblity label to the special effects buttons in photo editor. Bug: 6676889 Change-Id: I5446c95b5ec6a1084d82feb102e11b3b722254d1
Diffstat (limited to 'res')
-rw-r--r--res/layout/photoeditor_actionbar.xml6
-rw-r--r--res/layout/photoeditor_effects_color.xml1
-rw-r--r--res/layout/photoeditor_effects_menu.xml12
-rw-r--r--res/values/photoeditor_strings.xml22
4 files changed, 35 insertions, 6 deletions
diff --git a/res/layout/photoeditor_actionbar.xml b/res/layout/photoeditor_actionbar.xml
index e0adbbef9..c82faca2f 100644
--- a/res/layout/photoeditor_actionbar.xml
+++ b/res/layout/photoeditor_actionbar.xml
@@ -39,11 +39,13 @@
<com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/undo_button"
style="@style/ImageActionButton"
- android:src="@drawable/photoeditor_undo"/>
+ android:src="@drawable/photoeditor_undo"
+ android:contentDescription="@string/photoeditor_undo"/>
<com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/redo_button"
style="@style/ImageActionButton"
- android:src="@drawable/photoeditor_redo"/>
+ android:src="@drawable/photoeditor_redo"
+ android:contentDescription="@string/photoeditor_redo"/>
<ViewSwitcher
android:id="@+id/save_share_buttons"
diff --git a/res/layout/photoeditor_effects_color.xml b/res/layout/photoeditor_effects_color.xml
index 72cfe7a01..a2a88b2ac 100644
--- a/res/layout/photoeditor_effects_color.xml
+++ b/res/layout/photoeditor_effects_color.xml
@@ -43,6 +43,7 @@
<TextView
android:id="@+id/effect_label"
android:text="@string/grayscale"
+ android:contentDescription="@string/accessibility_black_and_white"
style="@style/EffectLabel"/>
</com.android.gallery3d.photoeditor.actions.GrayscaleAction>
<com.android.gallery3d.photoeditor.actions.SepiaAction style="@style/Effect">
diff --git a/res/layout/photoeditor_effects_menu.xml b/res/layout/photoeditor_effects_menu.xml
index a0b102dbe..2cc170110 100644
--- a/res/layout/photoeditor_effects_menu.xml
+++ b/res/layout/photoeditor_effects_menu.xml
@@ -26,19 +26,23 @@
<com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/exposure_button"
style="@style/EffectsMenuActionButton"
- android:src="@drawable/photoeditor_exposure"/>
+ android:src="@drawable/photoeditor_exposure"
+ android:contentDescription="@string/photoeditor_exposure"/>
<com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/artistic_button"
style="@style/EffectsMenuActionButton"
- android:src="@drawable/photoeditor_artistic"/>
+ android:src="@drawable/photoeditor_artistic"
+ android:contentDescription="@string/photoeditor_artistic"/>
<com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/color_button"
style="@style/EffectsMenuActionButton"
- android:src="@drawable/photoeditor_color"/>
+ android:src="@drawable/photoeditor_color"
+ android:contentDescription="@string/photoeditor_color"/>
<com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/fix_button"
style="@style/EffectsMenuActionButton"
- android:src="@drawable/photoeditor_fix"/>
+ android:src="@drawable/photoeditor_fix"
+ android:contentDescription="@string/photoeditor_fix"/>
</LinearLayout>
</FrameLayout>
diff --git a/res/values/photoeditor_strings.xml b/res/values/photoeditor_strings.xml
index f53e5a6b1..59312b509 100644
--- a/res/values/photoeditor_strings.xml
+++ b/res/values/photoeditor_strings.xml
@@ -75,6 +75,9 @@
<!-- Name for the photo effect that converts colors to black-and-white, abbreviated B&W. [CHAR LIMIT=15] -->
<string name="grayscale">B&amp;W</string>
+ <!-- Name for the photo effect that converts colors to black-and-white in accessibility mode [CHAR LIMIT=15] -->
+ <string name="accessibility_black_and_white">Black and white</string>
+
<!-- Name for the photo effect that adds highlights. [CHAR LIMIT=15] -->
<string name="highlight">Highlights</string>
@@ -134,4 +137,23 @@
<!-- Tool-tip toast shown when the user chooses to straighten photo. [CHAR LIMIT=40] -->
<string name="straighten_tooltip">Drag photo to straighten it</string>
+
+ <!-- Name for the exposure adjustment button in photo effects editor menu. [CHAR LIMIT=40] -->
+ <string name="photoeditor_exposure">Exposure</string>
+
+ <!-- Name for the color adjustment button in photo effects editor menu. [CHAR LIMIT=40] -->
+ <string name="photoeditor_color">Color editing</string>
+
+ <!-- Name for the artistic effect button in photo effects editor menu. [CHAR LIMIT=40] -->
+ <string name="photoeditor_artistic">Artistic effect</string>
+
+ <!-- Name for the fix up button in photo effects editor menu. [CHAR LIMIT=40] -->
+ <string name="photoeditor_fix">Fix up</string>
+
+ <!-- Name for the undo button in photo editor action bar. [CHAR LIMIT=40] -->
+ <string name="photoeditor_undo">Undo</string>
+
+ <!-- Name for the redo button in photo editor action bar. [CHAR LIMIT=40] -->
+ <string name="photoeditor_redo">Redo</string>
+
</resources>