https://kotlinlang.org logo
#compose
Title
# compose
b

Ben Powell

02/22/2023, 6:31 PM
Is there an Android-provided way to convert a Spanned string into an AnnotatedString? Alternatively, can I read a string resource as an AnnotatedString? I say “Android-provided” because while there are plenty of homegrown converters out there, and even a partial SpanStyle converter in the Compose source code, I’d prefer a complete and maintained solution.
e

ephemient

02/22/2023, 6:59 PM
b

Ben Powell

02/22/2023, 7:30 PM
Thanks for confirming, @ephemient
a

AmirHosseinAghajari

08/26/2023, 4:01 PM
Hello there, I've just released https://github.com/Aghajari/AnnotatedText, Check it out, it may meet your needs.
599 Views