OSDN Git Service

add content descriptions for filmstrip controls
authorAlan Newberger <alann@google.com>
Tue, 4 Feb 2014 01:23:50 +0000 (17:23 -0800)
committerAlan Newberger <alann@google.com>
Tue, 4 Feb 2014 01:23:50 +0000 (17:23 -0800)
adding TalkBack descriptions for action buttons shown on the bottom of filmstrip.

Bug: 10745077
Change-Id: I3ea278fb065629b43f0ccc9821fe19e6f1d9c4f9

res/layout/filmstrip_bottom_controls.xml
res/values/strings.xml

index 609d43a..b7277f4 100644 (file)
@@ -36,7 +36,8 @@
         android:id="@+id/filmstrip_bottom_control_share"
         style="@style/FilmstripBottomControlButton"
         android:src="@drawable/ic_menu_share_holo_light"
-        android:visibility="invisible" />
+        android:visibility="invisible"
+        android:contentDescription="@string/share_button_description" />
 
     <LinearLayout
         android:layout_width="144dp"
@@ -55,7 +56,8 @@
             style="@style/FilmstripBottomControlButton"
             android:layout_gravity="center"
             android:src="@drawable/ic_view_photosphere"
-            android:visibility="gone" />
+            android:visibility="gone"
+            android:contentDescription="@string/view_button_description" />
 
         <View
             android:id="@+id/filmstrip_bottom_control_middle_filler"
@@ -68,7 +70,8 @@
             android:id="@+id/filmstrip_bottom_control_edit"
             style="@style/FilmstripBottomControlButton"
             android:src="@drawable/ic_menu_edit_holo_dark"
-            android:visibility="gone" />
+            android:visibility="gone"
+            android:contentDescription="@string/edit_button_description" />
 
         <View
             android:layout_width="0dp"
@@ -82,7 +85,8 @@
         android:id="@+id/filmstrip_bottom_control_delete"
         style="@style/FilmstripBottomControlButton"
         android:src="@drawable/ic_menu_trash_holo_light"
-        android:visibility="invisible" />
+        android:visibility="invisible"
+        android:contentDescription="@string/delete_button_description" />
 
     <!-- A filler view -->
     <View
index a1b8c1d..924d35d 100644 (file)
@@ -739,6 +739,14 @@ CHAR LIMIT=NONE] -->
     <!-- Accessibility text for retake button [CHAR_LIMIT=NONE] -->
     <string name="retake_button_description">Retake</string>
 
+    <!-- Accessibility text for filmstrip share button [CHAR_LIMIT=NONE] -->
+    <string name="share_button_description">Share</string>
+    <!-- Accessibility text for filmstrip view button used to open special image viewers, like 3d photosphere [CHAR_LIMIT=NONE] -->
+    <string name="view_button_description">View</string>
+    <!-- Accessibility text for filmstrip edit button [CHAR_LIMIT=NONE] -->
+    <string name="edit_button_description">Edit</string>
+    <!-- Accessibility text for filmstrip delete button [CHAR_LIMIT=NONE] -->
+    <string name="delete_button_description">Delete</string>
 
     <!-- Text shown in camera settings list for toggling photo location on or off [CHAR LIMIT=25] -->
     <string name="setting_location">Location</string>