Tuesday 28 April 2020

Accessibility :Button

Button :  To announce the button , talkback will announce :

There are many reasons which should follow :
  • content Description should add only when it is required that the announcement is differ from button text 
  • Button (Element name) string should not added in content description string, like :
android:contentDescription="Submit Button"
This is not good example.

  • Similarly  “Double Tap to activate” (Element Action) string should not added in content description string, like :

 android:contentDescription="Submit double tap to activate"

This is not good example.

  • Also , if button’s state like : enable/disable it should also not added in content description string like: 
 android:contentDescription="Submit disabled"

This is also not good example.

Here is the example of 2 types of buttons , in that one it in disabled state :


In this demo ,there is no extra announcement has been added, it is announcing by default.

No comments:

Post a Comment

Advanced Kotlin Coroutines : Introduction

 Hi,  Today I am unwraping the topic in Kotin world i.e. Coroutine . If you want to get started with Kotlin coroutine and ease your daily de...