How to Set the Content Description of a Button
android:contentDescription was added in API Level 4Defines text that briefly describes content of the view. This property is used primary for accessibility. Since some views do not have textual representation this attribute can be used for providing such.
(TextView/EditText Since a textview/edittext has a textual representation, this would probably not be used in a TextView/EditText, but could be.)
1. Add a Button in your main.xml file.
2. Ensure to change the minSDKVersion to 4, or greater.
3. In the main.xml file, add the code below.
<Button
...
android:contentDescription = "Save Button"
/>
4. Compile and run!
Related Articles:
Resources:
http://developer.android.com/reference/android/view/View.html#attr_android:contentDescription
http://developer.android.com/reference/android/R.attr.html#contentDescription
http://developer.android.com/training/accessibility/accessible-app.html
http://www.grokkingandroid.com/steps-to-making-android-app-accessible/
http://developer.android.com/guide/topics/ui/accessibility/apps.html
developer.android.com/guide/topics/ui/accessibility/checklist.html