Bold one word in label
I'm trying to find out if anyone knows how to do this. I will have a sentence in a iPad app giving the user the result.
It wil be like…
This is a test, you scored 1234.45 more then 857.24.
I would like the 2 numbers in that sentence to be bold.
I'm not quite sure how to do that. Does anyone know how to do this?
Thanks.
2 Answers
-
In Android, label objects can use HTML by setting the html property instead of the text property. However, iOS does not support that property. Another option would be to use the Styled Label Module from the marketplace, since it supports both iOS and Android.
-
Hi Donovan, I can only think of two ways to do that:
- Chop the text into multiple labels and place them side-by-side, which could be tricky
- Use a little webview and apply CSS
cheers,
Chris.