Can `AnnotatedString` have a separate textStyle fo...
# compose
n
Can
AnnotatedString
have a separate textStyle for localized strings? Suppose I have
<string name="replying_to_title">Replying to %s</string>
and I want to set a separate textStyle for
%s
, what should I do? 🤔
z
Maybe theres a better way but I usually format
%s
first, then
replying_to_title.indexOf(%s)
and use that as startIndex
e
I wrote a custom formatter which preserves styles when interpolating pre-formatted args, afaik there's no built-in method