Lucien Guimaraes
12/14/2021, 6:52 PM<string name="news_count_title">{{count}} {{text}}</string>
. I would like count
and text
to have different styles. How to properly achieve it in Compose?Siyamed
12/14/2021, 6:59 PMLucien Guimaraes
12/14/2021, 7:04 PMNot implemented in compose yet. 😕 there is a ticket with title (~)Styled string resourcethis one: https://issuetracker.google.com/issues/139320238 ?
Siyamed
12/14/2021, 7:06 PMLucien Guimaraes
12/14/2021, 7:07 PMI didn't think much yet, but if i were to do it today i'd use Annotation class/tag in string resources and create an AnnotatedString from the Spanned i have.That's the solution I had in mind too 👍 I'm already using it to have clickable text inside a string. I was just hoping for something out of the box
Casey Brooks
12/14/2021, 10:43 PMJohan Reitan
12/15/2021, 8:55 AM