B4X:
lang="b4x"
For i = 1 To maxCol
Dim L As B4XView = Labels.Get(i).As(B4XView)
L.Text=Txt(nLine+m) 'Labels.Get(i).As(B4XView).Text
L.Height = -1
If i = 2 Then 'format of column 2
Dim jo As JavaObject = L
jo.RunMethod("setTextAlignment", Array("RIGHT"))
L.font = fx.CreateFont("", 14, True, False)
L.TextColor = xui.Color_Red
End If
m=m+1
Next
Using the above code I get this result in BBCODEVIEW under B4J:
Where text in column 2 should be bold, red and right aligned, but this seemd works only to work when the underlying label is multiline.
Why does it not work when the text fits on a single line? Does this have to do with Array("RIGHT")?
Your help will be greatly apreciated. Thank you.