I am stuck at the following problem and need your help to resolve it. Any guidance would be highly appreciated.
Scenario: I have an overlay view on top of a surface view and this overlay view has couple of images and a button. I have set the "orientation" flag to 'Landscape' in the manifest file for this activity and written an orientation listener also to identify the Landscape left and Landscape right orientations.
Problem: When I turned on the accessibility mode with content description correctly set to the widgets, in the initial mode(whether landscape left or right) when I press any image, I hear the accessibility talkback correctly. Problem happens when i rotate the device orientation from left to right or vice-versa, even though overlay view is rotated correctly the accessibility controls are not rotated. When I touch the icons in new orientation with Accessibility still on, I do not hear the TalkBalk text. When I touch the image location on the overlay where it was drawn in the last orientation mode, I hear the talkback text.
Looks like the Accessibility area on the display/view is locked and is not getting rotated with the rotation of the overlay view on rotating the screen orientation from left to right.
Any idea of why this is happening and way to rectify it? Is the only open to destroy the activity and create it again? I can't destroy the surface view as it would affect the user experience. How can I rotate the accessibility TalkBack text associated with the images along with the screen rotation?
Spent days on this problem. Tried view rotation by rotating it but that is not the problem as view is already rotating. Please help.
Thanks a lot for your help in advance.