Simona Milanovic
banner
anomiss.bsky.social
Simona Milanovic
@anomiss.bsky.social
Senior Android Developer Relations Engineer
@Google, working on Jetpack Compose 🤙
We also published new and expanded guidance on Compose accessibility that tackles all of these topics in more detail:

goo.gle/compose-acce...
Accessibility in Jetpack Compose  |  Android Developers
goo.gle
May 23, 2025 at 8:50 AM
Reposted by Simona Milanovic
We launched the #Androidify sample app on GitHub yesterday too to learn more about how it works behind the scenes. android-developers.googleblog.com/2025/05/andr...
Androidify: Building powerful AI-driven experiences with Jetpack Compose, Gemini and CameraX
The Androidify app is an open-source project, utilizing Jetpack Compose, Gemini, CameraX, and Navigation 3 to build AI-driven Android experiences.
android-developers.googleblog.com
May 21, 2025 at 4:33 PM
a more practical, smaller proposal is: have you tried setting the testTag first, and then clearing? This should keep the test tag and clear the rest of the semantics

modifier = Modifier
.testTag("testtag")
.clearAndSetSemantics { }
March 19, 2025 at 5:09 PM
I see! a bigger question: what is your backend testing setup like, for this and everything else? if you have dynamic a11y labels in diff locales, I'd then expect you'd want to test these individually? :) meaning you'd have a way of providing test data, like a11y labels, that you can access in tests
March 19, 2025 at 5:07 PM
If you already have semantic info in a composable, you can most likely just use that for assertion in a test as well. Test tags are often used unnecessarily just cause it's convenient :), chances are you can avoid it for a lot of cases
March 19, 2025 at 1:07 PM
Test tags are meant to be used for testing only, whereas semantics can be used for both accessibility AND testing, whenever possible. Can you explain why and how you'd ever use a test tag for accessibility purposes?
March 19, 2025 at 1:02 PM