iOS Code Snippet Adding ListView Items

' for the bitmap use LoadBitMap method

B4X:
Public Sub AddTwoLinesAndBitmap2(LV As TableView, sTitle As String, sDescription As String, img As Bitmap, sKey As String)
    Dim tc As TableCell = LV.AddTwoLines(sTitle, sDescription)
    tc.Bitmap = img
    tc.Tag = sKey
End Sub

Public Sub AddSingleLineAndBitmap2(LV As TableView, sTitle As String, img As Bitmap, sKey As String)
    Dim tc As TableCell = LV.AddTwoLines(sTitle, "")
    tc.Bitmap = img
    tc.Tag = sKey
End Sub

Public Sub AddTwoLines2(LV As TableView, sTitle As String, sDescription As String, sKey As String)
    Dim tc As TableCell = LV.AddTwoLines(sTitle, sDescription)
    tc.Tag = sKey
End Sub

Public Sub AddSingleLine2(LV As TableView, sTitle As String, sKey As String)
    Dim tc As TableCell = LV.AddTwoLines(sTitle, "")
    tc.Tag = sKey
End Sub
 
Top