Hi I have a problem with link inside text and calk...
# compose
a
Hi I have a problem with link inside text and calkback/voiceover .. links work but no accessibility
here my code
val annotatedString = buildAnnotatedString {
val link1 = "LINK 1"
val link2 = "LINK2"
append(link1)
append(link2)
addStringAnnotation(
tag = "URL",
annotation = "<https://www.google.it>",
start = 0,
end = link1.length
)
addStringAnnotation(
tag = "URL",
annotation = "<https://account.jetbrains.com>",
start = link1.length,
end = link1.length + link2.length
)
}
ClickableText(
text = annotatedString,
style = Type.paragraphBody2CenterRegularWhite,
onClick = {
annotatedString
.getStringAnnotations("URL", it, it)
.firstOrNull()?.let { stringAnnotation ->
uriHandler.openUri(stringAnnotation.item)
}
},
)
i don't undestand why links work but takback no..
talkback can read text but not link