iOS Code Snippet Differences between B4A and B4i

Mashiane

Expert
Licensed User
b4i does not have this method yet for the ListView, here is an adoption:
Usage: AddTwoLinesAndBitMap2(iTableViewID, Title, Description, LoadBitMap(), key)

The b4a has this method built in for it.

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
 
Top