I am attempting to left/center align the headers of a TableView. There seems to be no core method and I have tried the CSS method without success. I have looked at the various (few) examples on the forum but none seem to work as the IDE reports that the CSS file is not being parsed correctly. As a stranger to CSS I need some assistance please:
Using 'mystyle.css'
B4X:
Private Col As Int
TableView1.SetColumns(Array As String("Date","Type","Item","Credit","Debit","Balance","Reconciled","OK"))
For Col = 0 To TableView1.ColumnsCount -1
SetColumnStyle(Col,File.GetUri(File.DirAssets, "mystyle.css"))
TableView1.SetColumnSortable(Col,False)
Next
Using 'mystyle.css'
B4X:
.my-special-column-style .label {
-fx-alignment: center-left;
}