I see this Custom Grid View Example and Library , I tried to connect through the Sql Database Cursor.Getstring but without success. For ListView I used this :
B4X:
Cursor1 = SQL1.ExecQuery2("SELECT * FROM Vestiti WHERE Categoria = ? ORDER BY rowid DESC", Array As String("T-shirts"))
For i=0 To Cursor1.RowCount-1
Cursor1.Position=i
Dim Buffer() As Byte
Buffer = Cursor1.GetBlob("Immagine")
Dim InputStream1 As InputStream
InputStream1.InitializeFromBytesArray(Buffer, 0, Buffer.Length)
Dim Bitmap1 As Bitmap
Bitmap1.Initialize2(InputStream1)
InputStream1.Close
ListView1.AddTwoLinesAndBitmap(Cursor1.GetString("Identificativo"),"",Bitmap1)
Next