-Playground used Android real device
tns --version to fetch it) 4.1.0node_modules/tns-core-modules/package.json file in your project)"tns-android" and "tns-ios" properties in the package.json file of your project) "tns-android": {
"version": "4.1.3"
},
"tns-ios": {
"version": "4.1.1"
}
Put 2 Spans inside a FormattedString, and try to style it with things besides color.
Hi @kamok,
Thank you for the sample project.
The margin seems not to be supported by the Spans. You can check all available properties for this component here. Regarding that, you can set up the fontFamily, fontSize, color and backgroundColor.
This is pretty limiting. There's no way for me to make sure the icon text + text on my Button or Label to be aligned vertically. Right now it looks very strange, even if the font size is set to exactly the same, there is still a minor difference between the two font sets in terms of height and alignment.
@tsonevn Have you got an alternative solution for this? You provided a blunt and unhelpful answer to @kamok
Use 3 spans, one the middle with a " \n" and small fontsize
Most helpful comment
This is pretty limiting. There's no way for me to make sure the icon text + text on my Button or Label to be aligned vertically. Right now it looks very strange, even if the font size is set to exactly the same, there is still a minor difference between the two font sets in terms of height and alignment.