Hi guys!
Today I've this strange problem with CSBuilder.
In a code module I wrote this function:
I don't understand why the icon not render correctly.
I use this to set "text" property of a Label loaded dinamycally from layout, during custom dialog's build.
If I write the same code "in-line" icon render correctly.
In others same context (for example, to set "text" property of another Label loaded dinamycally from layout, but not during custom dialog's build), works correctly: icon is correctly rendered.
Have you got an idea?
Thanks in advance
Matteo
Today I've this strange problem with CSBuilder.
In a code module I wrote this function:
B4X:
Public Sub GetTitleProductReplace As String
Dim sf1 As StringFunctions
Dim cs1 As CSBuilder
sf1.Initialize
cs1.Initialize
cs1.Typeface(Typeface.MATERIALICONS).Append(Chr(0xE86A)).Typeface(Typeface.DEFAULT).Append(sf1.AddSpaces(3))
cs1.Typeface(Typeface.DEFAULT).Append("MyText").PopAll
cs1.PopAll
Return cs1
End Sub
I don't understand why the icon not render correctly.
I use this to set "text" property of a Label loaded dinamycally from layout, during custom dialog's build.
If I write the same code "in-line" icon render correctly.
B4X:
Dim cs As CSBuilder
Dim sf1 As StringFunctions
sf1.Initialize
cs.Initialize
cs.Typeface(Typeface.MATERIALICONS).Append(Chr(0xE86A)).Typeface(Typeface.DEFAULT).Append(sf1.AddSpaces(3))
cs.Typeface(Typeface.DEFAULT).Append("MyText").PopAll
LabelProductReplaceTitle.Text = cs ' FunctionsCommonSoL.GetTitleProductReplace
In others same context (for example, to set "text" property of another Label loaded dinamycally from layout, but not during custom dialog's build), works correctly: icon is correctly rendered.
Have you got an idea?
Thanks in advance
Matteo