iOS Question Dark style TableView SingleRowCellStyle

Discussion in 'iOS Questions' started by MarcelloCSI, Jun 3, 2019.

  1. MarcelloCSI

    MarcelloCSI Active Member Licensed User

    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:
    Code:
    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
    IMG_0011_cut.PNG
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Don't use TableView. Use xCustomListView. It will be much simpler to customize.
     
  3. MarcelloCSI

    MarcelloCSI Active Member Licensed User

    Has it the possibility to set the "Swipe to delete" item?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. MarcelloCSI

    MarcelloCSI Active Member Licensed User

    Thanks!

    I'll change my tables
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice