aurelhubert / ahbottomnavigation

A library to reproduce the behavior of the Bottom Navigation guidelines from Material Design.
3.83k stars 682 forks source link

Better accessibility support #353

Open kenumir opened 6 years ago

kenumir commented 6 years ago

Add ContentDescription to items when no label show. When is set

<AHBottomNavigation>.setTitleState(AHBottomNavigation.TitleState.ALWAYS_HIDE);

TalkBack has no text to read.

Simplest solution is when inflating items set

view.setContentDescription(item.getTitle(context));
mikeyredtiger22 commented 4 years ago

Would also be great if the tabs read out their position ("tab 3 of 4") and if that tab is selected.