Hello,
I'm trying to set a dark style in my app. I have a problem with tableView cells background color.
I'm using the classic TableCell without custom layout. I use the TableView.AddSingleLine() function to get the cell.
My question is how can i set the background color of that cell?
If i use RowCell.CustomView.Color = ApplicationCustom.DarkPanelColor to change the color i got an error in debug.
My code is:
I'm trying to set a dark style in my app. I have a problem with tableView cells background color.
I'm using the classic TableCell without custom layout. I use the TableView.AddSingleLine() function to get the cell.
My question is how can i set the background color of that cell?
If i use RowCell.CustomView.Color = ApplicationCustom.DarkPanelColor to change the color i got an error in debug.
My code is:
B4X:
TableView1.AddSection("Sistemi", "")
TableView1.Color = ApplicationCustom.DarkPanelColor2
For Each t As Int In ImpiantiInDb.Keys
Dim RowCell As TableCell = TableView1.AddSingleLine("text")
RowCell.Text.Initialize("text", Font.CreateNewBold(20), ApplicationCustom.DarkLabelColor)
RowCell.AddActionButton("Delete", ApplicationCustom.DarkRedTextColor)
RowCell.AccessoryType = RowCell.ACCESSORY_NONE
RowCell.Tag = t
Next
TableView1.ReloadAll