Sub PopulateListView (site As TipoSite)
Dim indice As Int = 0
For Each Row() As String In Starter.csvGeneral
'ProgressDialogShow2("Reading pics " & Row(0), False)
CreateItemChk(Row(0), site.MapFotos.Get(Row(0)), indice)
indice = indice + 1
Next
For Each Row() As String In Starter.csvEspecifico
'ProgressDialogShow2("Reading pics " & Row(0), False)
Wait for (CreateItemChk(Row(0), site.MapFotos.Get(Row(0)), indice)) Complete
indice = indice + 1
Next
ProgressDialogHide
End Sub
Sub CreateItemChk(Punto As String, ListaFotos As List, index As Int) As Panel
Dim p As Panel
p.Initialize("")
Activity.AddView(p, 0, 0, 100%x, ExpandedHeight)
p.SetLayout(0, 0, 100%x, 150dip)
p.LoadLayout("cellPuntosChk")
p.RemoveView
For i = 0 To ListaFotos.Size - 1
Dim pnl As Panel
pnl.Initialize("")
Activity.AddView(pnl, 0, 0, 100%x, ExpandedHeight)
pnl.SetLayout(0, 0, 90dip, 60dip)
pnl.LoadLayout("ImagenPunto")
pnl.RemoveView 'remove from parent
Dim img As B4XBitmap = xui.LoadBitmap(ListaFotos.Get(i))
IVFotoPunto.SetBitmap(CreateRoundBitmap(img, 70dip))
IVFotoPunto.Tag = ListaFotos
pnl.Tag = ListaFotos.Get(i)
CLVFotos.Add(pnl, ListaFotos.Size)
Next
Return p
End Sub