I'm trying to add the result of a B4JTextFlow into a ListView. It works, but the result is always centered.
I cannot figure out how to align it 'left'. What's the right way to do it?
B4X:
Dim richtext As B4JTextFlow
richtext.Initialize
richtext.Append("Test").SetStrikethrough(True)
ListView1.Items.Add(richtext.CreateTextFlow)
I'm trying to add the result of a B4JTextFlow into a ListView. It works, but the result is always centered.
I cannot figure out how to align it 'left'. What's the right way to do it?
B4X:
Dim richtext As B4JTextFlow
richtext.Initialize
richtext.Append("Test").SetStrikethrough(True)
ListView1.Items.Add(richtext.CreateTextFlow)
Dim richtext As B4JTextFlow
richtext.Initialize
richtext.Append("Test").SetStrikethrough(True)
Dim p As B4XView=richtext.CreateTextFlow
CSSUtils.SetStyleProperty(p, "-fx-text-alignment", "left")
ListView1.Items.Add(p)