In my Android app, I have a View which displays an image and has an associated ContentDescription.
I can enable Settings->Accessibility->Talkback, with Explore By Touch from the Talkback settings, and then single tap on the View to read the ContentDescription aloud.
This is all as expected so far.
However, I would like Explore By Touch to repeat the ContentDescription if I single tap the same View again. For example, my image and description may be updated while it has the AccessibilityFocus, so saying the new phrase would be helpful to the user. How can I achieve this?
I've tried experimenting with View.clearFocus() and View.invalidate(), but with no success.
Any constructive ideas would be welcome.
Update
I should have also mentioned that I want to add support from API 8 onwards. Hence, I'm trying to do the best I can with the Accessibility interface from API 4.
I'm currently working on a solution that uses View.clearFocus() followed by View.requestFocus() to work around the updated-view issue. This appears to work so far on my test kit with APIs 8 and 16.
I'll update again with the final result, but welcome further suggestions in the interim.