How can I change the default Text content description to be read on TalkBack on Jetpack Compose to any text that I want ?
Asked
Active
Viewed 4,212 times
1 Answers
26
As described in the accessibility documentation you can use the semantics
modifier.
You can use the contentDescription
semantic property to set a custom content description:
Text("First text", modifier = Modifier.semantics {
this.contentDescription = "Custom content description" }
)

Gabriele Mariotti
- 320,139
- 94
- 887
- 841
-
1Worked like a charm, thank you very much! – julioribeiro Aug 12 '21 at 17:59