Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a11y: Support for Accessibility Settings #347

Open
ecarrara-araujo opened this issue Dec 11, 2024 · 0 comments
Open

a11y: Support for Accessibility Settings #347

ecarrara-araujo opened this issue Dec 11, 2024 · 0 comments

Comments

@ecarrara-araujo
Copy link

Description

<-- A clear and concise description of what the problem is. -->

I have looked into Rive docs and could not find a way to properly provide a11y description when using Compose (usually the AndroidView containing the Rive animation is skipped by Talkback) and it will also not respect animation speed set up in the system.

Expected behavior

<-- A clear and concise description of what you expected to happen. -->

  • Properly support Talkback and ways to set content description or document that we should disable it.
  • Respect the animation speeds, enabling/disabling set on the system.

Workaround

To work around the talkback issue I have wrapped the AndroidView containing the Rive Animation into a Box and set the semantics into it. Example:

Box(
        modifier = modifier
            .semantics { contentDescription = "description" },
        contentAlignment = Alignment.Center,
    ) {
        AndroidView(
            modifier = Modifier.fillMaxSize(),
            factory = {
                RiveAnimationView.Builder(it)
                    .setResource(animationResource)
                    .build()
            },
        )
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant