'create the layout of the image grid
Sub Cell_RowLayoutCreator(LayoutName As String, CellPanel As Panel, CellIndex As Byte)
CellPanel.LoadLayout("cells")
End Sub
Sub Cell_RowContentFiller(RowID As Long, LayoutName As String, CellPanel As Panel, CellIndex As Byte, Position As Int)
Try
Dim pnlLayout As Panel = CellPanel.GetView(0)
Dim iv As ImageView = pnlLayout.GetView(0) '<-- change imageview to b4ximageview here
Dim ImgIndex As Int = RowID * NB_COL + CellIndex
If ImgIndex < ListaImg.Size Then
Dim ItemString As String = ListaImg.Get(ImgIndex)
Dim bmp As Bitmap
bmp.InitializeSample(File.DirAssets, ItemString, 250dip, 250dip)
iv.Bitmap = bmp
Else
iv.Bitmap = Null
End If
Catch
ToastMessageShow("Error to load the list.", False)
Log(LastException)
End Try
End Sub