Can I request the following minor change.
to
So that I can use CSbuilder strings in the CustomListView AddTextItem.
Thanks
B4X:
Private Sub CreateLabel(txt As String) As B4XView
Dim lbl As Label
lbl.Initialize("")
lbl.TextAlignment = DesignerLabel.TextAlignment
lbl.Font = DesignerLabel.Font
lbl.Multiline = True
lbl.Text = txt
lbl.Width = sv.ScrollViewContentWidth - 10dip
lbl.SizeToFit
Return lbl
End Sub
to
B4X:
Private Sub CreateLabel(txt As Object) As B4XView ' a change to the type
Dim lbl As Label
lbl.Initialize("")
lbl.TextAlignment = DesignerLabel.TextAlignment
lbl.Font = DesignerLabel.Font
lbl.Multiline = True
lbl.attributedText = txt ' a change to the assigned string
lbl.Width = sv.ScrollViewContentWidth - 10dip
lbl.SizeToFit
Return lbl
End Sub
So that I can use CSbuilder strings in the CustomListView AddTextItem.
Thanks