Talkback добавляет ранее установленное описание контента ⇐ Android
-
Anonymous
Talkback добавляет ранее установленное описание контента
I've a custom view button and I call setContentDescription multiple times based on the state of the custom view. I'm seeing a odd behavior from talkback, it is reading "Selected , Button, ". I printed getContentDescription and it never has once this appended format and is always only correctly displaying what is set before. If I comment out the lines of the state I don't want to be seen, I don't see the appended string. So, I'm sure the contentDescription is coming from that previous set call. Anyone knows what the heck is going on?
Источник: https://stackoverflow.com/questions/781 ... escription
I've a custom view button and I call setContentDescription multiple times based on the state of the custom view. I'm seeing a odd behavior from talkback, it is reading "Selected , Button, ". I printed getContentDescription and it never has once this appended format and is always only correctly displaying what is set before. If I comment out the lines of the state I don't want to be seen, I don't see the appended string. So, I'm sure the contentDescription is coming from that previous set call. Anyone knows what the heck is going on?
Источник: https://stackoverflow.com/questions/781 ... escription
Мобильная версия