Question

enter image description hereI am conducting accessibility testing on my android application, and am running into a few accessibility issues.

I want to know if it possible to change any properties of the accessibility tools in code, such as change the color or size of the focus selector?

Right now the focus selector is hard to see in some parts of the application. I have not found anything that states you can change this. Thank you for your help

Edit(Picture added): Attached is an example of my login screen with accessibility mode on. In the picture, the cancel button is focused, but as seen in the picture the focus selector is very hard to see. I want to make the selector more visible if it is possible.

Était-ce utile?

La solution

The accessibility service is a global-level service; even if your app can change settings on the service itself, you should avoid doing so because you'll need to reverse those changes when your app is no longer active (and that gets you into some nasty corner cases... What if your app crashes and leaves the user's accessibility service in a bad state?).

Alternatively, you can use the Accessibility Manager to check the status of accessibility on the system (via addAccessibilityStateChangeListener and isEnabled) and when you detect accessibility is enabled, change your app's UI to be more accomodating to the accessibility system (for example, by significantly lightening the app's gradient background so the green highlight box becomes visible). Your users who don't need accessibility get the app's interface as you've intended it, and your users who need assistance with vision can still use accessibility.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top