- Text field hints: For
EditTextfields, provide an android:hint attribute instead of a content description, to help users understand what content is expected when the text field is empty and allow the contents of the field to be spoken when it is filled. - Custom controls with high visual context:
If your application contains a custom control with a high degree of
visual context (such as a calendar control), default accessibility
services processing may not provide adequate descriptions for users, and
you should consider providing a virtual view hierarchy for your control
using
AccessibilityNodeProvider. - Custom controls and click handling: If a custom control in your application performs specific handling of user touch interaction, such as listening with
onTouchEvent(MotionEvent)forMotionEvent.ACTION_DOWNandMotionEvent.ACTION_UPand treating it as a click event, you must trigger anAccessibilityEventequivalent to a click and provide a way for accessibility services to perform this action for users. For more information, see Handling custom touch events. - Controls that change function:
If you have buttons or other controls that change function during the
normal activity of a user in your application (for example, a button
that changes from Play to Pause), make sure you also change the
android:contentDescriptionof the button appropriately. - Prompts for related controls: Make sure sets of controls which provide a single function, such as the
DatePicker, provide useful audio feedback when an user interacts with the individual controls. - Video playback and captioning: If your application provides video playback, it must support captioning and subtitles to assist users who are deaf or hard of hearing. Your video playback controls must also clearly indicate if captioning is available for a video and provide a clear way of enabling captions.
- Supplemental accessibility audio feedback:
Use only the Android accessibility framework to provide accessibility
audio feedback for your app. Accessibility services such as TalkBack
should be the only way your application provides accessibility audio
prompts to users. Provide the prompting information with a
android:contentDescriptionXML layout attribute or dynamically add it using accessibility framework APIs. For example, if your application takes action that you want to announce to a user, such as automatically turning the page of a book, use theannounceForAccessibility(CharSequence)method to have accessibility services speak this information to the user. - Custom controls with complex visual interactions:
For custom controls that provide complex or non-standard visual
interactions, provide a virtual view hierarchy for your control using
AccessibilityNodeProviderthat allows accessibility services to provide a simplified interaction model for the user. If this approach is not feasible, consider providing an alternate view that is accessible. - Sets of small controls:
If you have controls that are smaller than the minimum recommended
touch size in your application screens, consider grouping these controls
together using a
ViewGroupand providing aandroid:contentDescriptionfor the group. - Decorative images and graphics: Elements in application screens that are purely decorative and do not provide any content or enable a user action should not have accessibility content descriptions.
Thursday, 28 August 2014
Andrid App's Special Cases and Considerations by Quontra Solutions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment