Hi, does anybody know how to do styling + formatte...
# compose
n
Hi, does anybody know how to do styling + formatted arguments with text that is being shown in a text composable? The use case is to just bold two items in the string which are getting fed in with format strings. Options in thread.
1. Ideally would be able to just use the basic html markup styling which is avaialble for string resources but doesn’t seem to work in the compose world. 2. I could use annotated string, would need to create custom annotations to apply bold as it can’t just be based on position in the text as different languages could have it in different locations. It adds alot of complexity.
s
s
Compose should add a mechanism to read a format(not necessarily html) from string resources. Can you please create a bug. I am not sure if there is already a bug about it.
n
https://issuetracker.google.com/issues/187742244 (did a quick search and couldn’t find anything so created one)