Accessibility feature - event population and firing (making dialpad accessible)
diff --git a/res/layout-finger/dialpad.xml b/res/layout-finger/dialpad.xml
index 30018f0..8f367e5 100644
--- a/res/layout-finger/dialpad.xml
+++ b/res/layout-finger/dialpad.xml
@@ -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"
@@ -99,6 +108,7 @@
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"
@@ -107,6 +117,7 @@
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"
@@ -115,5 +126,6 @@
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>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 2e5b559..5e86d73 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -513,4 +513,91 @@
<!-- 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>