OSDN Git Service

Accessibility feature - event population and firing (making dialpad accessible)
authorsvetoslavganov <svetoslavganov@google.com>
Wed, 29 Apr 2009 02:22:46 +0000 (19:22 -0700)
committersvetoslavganov <svetoslavganov@google.com>
Mon, 4 May 2009 11:08:09 +0000 (04:08 -0700)
res/layout-finger/dialpad.xml
res/values/strings.xml

index 30018f0..8f367e5 100644 (file)
@@ -27,6 +27,7 @@
             android:src="@drawable/dial_num_1"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_one"
         />
             
         <ImageButton android:id="@+id/two"
@@ -35,6 +36,7 @@
             android:src="@drawable/dial_num_2"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_two"
         />
 
         <ImageButton android:id="@+id/three"
@@ -43,6 +45,7 @@
             android:src="@drawable/dial_num_3"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_three"
         />
 
         <ImageButton android:id="@+id/four"
@@ -51,6 +54,7 @@
             android:src="@drawable/dial_num_4"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_four"
         />
         
         <ImageButton android:id="@+id/five"
@@ -59,6 +63,7 @@
             android:src="@drawable/dial_num_5"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_five"
         />
 
         <ImageButton android:id="@+id/six"
@@ -67,6 +72,7 @@
             android:src="@drawable/dial_num_6"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_six"
         />
 
         <ImageButton android:id="@+id/seven"
@@ -75,6 +81,7 @@
             android:src="@drawable/dial_num_7"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_seven"
         />
     
         <ImageButton android:id="@+id/eight"
@@ -83,6 +90,7 @@
             android:src="@drawable/dial_num_8"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_eight"
         />
 
         <ImageButton android:id="@+id/nine"
@@ -91,6 +99,7 @@
             android:src="@drawable/dial_num_9"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_nine"
         />
 
         <ImageButton android:id="@+id/star"
             android:src="@drawable/dial_num_star"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_star"
         />
     
         <ImageButton android:id="@+id/zero"
             android:src="@drawable/dial_num_0"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_zero"
         />
 
         <ImageButton android:id="@+id/pound"
             android:src="@drawable/dial_num_pound"
             android:background="@drawable/btn_dial"
             android:soundEffectsEnabled="false"
+            android:contentDescription="@string/description_image_button_pound"
         />
 </com.android.contacts.ButtonGridLayout>
index 747cd7d..3da39d9 100644 (file)
     <!-- Dialog message when prompting before creating a contact. Includes
          the email address, e.g. "Add xyz@foo.com to contacts?" -->
     <string name="add_contact_dlg_message_fmt">Add \"<xliff:g id="email">%s</xliff:g>\" to contacts?</string>
+
+    <!-- Content description values -->
+
+    <!-- String describing the image on ImageButton one
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_one">one</string>
+
+    <!-- String describing the image on ImageButton two
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_two">two</string>
+
+    <!-- String describing the image on ImageButton three
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_three">three</string>
+
+    <!-- String describing the image on ImageButton four
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_four">four</string>
+
+    <!-- String describing the image on ImageButton five
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_five">five</string>
+
+    <!-- String describing the image on ImageButton six
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_six">six</string>
+
+    <!-- String describing the image on ImageButton seven
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_seven">seven</string>
+
+    <!-- String describing the image on ImageButton eight
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_eight">eight</string>
+
+    <!-- String describing the image on ImageButton nine
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_nine">nine</string>
+
+    <!-- String describing the image on ImageButton star
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_star">star</string>
+
+    <!-- String describing the image on ImageButton zero
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_zero">zero</string>
+
+    <!-- String describing the image on ImageButton pound
+
+        Note: AccessibilityServices use this attribute to announce what the view represents.
+              This is especially valuable for views without textual representation like ImageView.
+    -->
+    <string name="description_image_button_pound">pound</string>
+
 </resources>