In a B4XTable, how to horizontal align a column, i.e. "LEFT", "CENTER", "RIGHT" or "CENTER_LEFT"?
Tried below snippet, but gives a runtime error
Tried below snippet, but gives a runtime error
B4X:
'Add column and get as object
Dim TypeColumn As B4XTableColumn = B4XTableDatapoints.AddColumn("Type", B4XTableDatapoints.COLUMN_TYPE_TEXT)
'Set the column width
TypeColumn.Width = 250dip
'Get the label from the column
Dim TypeLabel As B4XView = TypeColumn.Panel.GetView(TypeColumn.LabelIndex)
'Set text alignment
TypeLabel.SetTextAlignment("CENTER", "LEFT")
B4X:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Type does not match (class anywheresoftware.b4j.objects.PaneWrapper$ConcretePaneWrapper$NonResizePane)