iOS Question AttributedText and CSBuilder not working

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi guys.. i'm trying to write a text in a Label with an icon at the beginning..
i can't do it, csbuilder act weird, i think i'm doing the correct way..

This code
B4X:
    Dim cs As CSBuilder
    cs.Initialize.Font(Font.CreateMaterialIcons(20)).Append(Chr(0xE855)).Pop
    cs.Font(Font.CreateNew2("AvenirNext-Medium", 15)).Append(" Da fare").Pop
    cs.PopAll
    lblWarningPasto.AttributedText = cs

produces this effect:
IMG_6636.PNG


Thanks in advance
 
Top