FloatingActionButton icon indicating copy to clipboard operation
FloatingActionButton copied to clipboard

change contentDescription programmatically for FloatingActionMenu

Open ingpeternemec opened this issue 9 years ago • 4 comments

Hello, can you help me, please. How can I programmatically change contentDescription of FloatingActionMenu? I have added android:contentDescription="my menu" into layout.xml. When I switch TalkBack on, and I tap on a FAB menu, TalkBack says "unmarked button". When I tap it again, TalkBack says "my menu". It seems like two overlayed views. I would like change contentDescription depending on open/close state of the FAB menu. Is it possible? When I use fabMenu.setContentDescription(getResources().getString(R.string.menu_open)); it does not work Library version 1.5.5 Thanks Best regards Peter

ingpeternemec avatar Aug 05 '16 07:08 ingpeternemec

+1 ! Any news on this one? I resolved it for now with reflection, but a solid solution would be nice!

josomers avatar Sep 07 '16 12:09 josomers

Would love to be able to set content description on that too

hkalantarian avatar Nov 22 '16 23:11 hkalantarian

Same problem here. If I set contentDescription for FloatingActionMenu via XML it is still read as unlabeled button by Talkback. The solution should be easy it should take android:contentDescription parameter and set the text as content description for both views ( I guess that there are two overlaying views ).

TomWayne98 avatar Jun 12 '17 19:06 TomWayne98

Has this been resolved? Or is there a workaround for this?

joseph-acc avatar Mar 21 '19 23:03 joseph-acc