When does "ActionBarDrawerToggle" show the lines "openDrawerContentDescRes" and "closeDrawerContentDescRes"?

Background

CTOR "ActionBarDrawerToggle" as such:

public ActionBarDrawerToggle (Activity activity, DrawerLayout drawerLayout, int openDrawerContentDescRes, int closeDrawerContentDescRes) 

or

 public ActionBarDrawerToggle (Activity activity, DrawerLayout drawerLayout, Toolbar toolbar, int openDrawerContentDescRes, int closeDrawerContentDescRes) 

The documentation tells you about the string options, which ( here ):

String resources should be provided to describe the open / close action drawer for availability services.

Problem

I cannot find a script that uses these lines.

What i tried

Unlike action elements, where I can see a toast every time I press the element for a long time, here I could not find in which case I can see it.

Question

Why is this required? In what cases is this indicated?

Does this look like what happens with ImageView? If so, I would still like to know when these lines are used and how (on both ImageView and here).

+5
source share
1 answer

These are string resources for describing content. They do not appear on the screen, but accessibility services can use them, for example, aloud that the content is intended for users with visual impairment using text-to-speech. That way, you can make the device make a sound saying โ€œdrawerโ€ or โ€œdrawer is closedโ€ (or any other lines) when the drawer opens or closes, so blind users know what happened in the application.

+4
source

Source: https://habr.com/ru/post/1212012/


All Articles