I was exploring the API Demos provided in android sdk, android version > 4.1 . API Demos -> Accessibility -> Accessibility Node Provider
The AccessibilityNodeProvider contains some custom views with Red, Green, Blue colors. As mentioned in the activity , i enabled the talkback and i tried to hover on the views. Talkback couldn't read the colors. Talkback is reading the text available in the activity but not the colors. I was wondering does Talkback reads the colors (custom views) in the activity ?
Thanks in advance
I've found this Google Code example to be a better example of speaking text in a node provider setup.
(Old answer below.)
In theAccessibilityNodeProviderActivityclass, look at the methodsendAccessibilityEventForVirtualView(). You’ll see that the text set into the event is the text defined inaccessibility_node_provider.xml. You would replace that text with a wording of the different color values to get what you asked for.