For row = 0 To 5
'load the 3 panels layout to fill each clv's row.
Dim rowpnl As Panel
rowpnl.Initialize("")
rowpnl.LoadLayout("lytGridRow")
Dim bckpnl As Panel = rowpnl.GetView(0) 'layout has a backpanel as itd foundation
'load the 3 panels layout to fill each clv's row.
Dim rowpnl As Panel
rowpnl.Initialize("")
rowpnl.LoadLayout("lytGridRow")
Dim bckpnl As Panel = rowpnl.GetView(0) 'layout has a backpanel as itd foundation
'Left cell panel
Dim cellpnl As Panel = bckpnl.getview(0) 'left cell
cellpnl.LoadLayout("lytCell")
'we should load DB data in cellpnl's items, but here we don't so nothing is shown
Dim bckp As Panel = cellpnl.GetView(0)
Dim image As ImageView = bckp.GetView(0) 'image view
image.Bitmap = LoadBitmapSample(File.DirAssets,"pizza.png",bckp.Width, bckp.Height/2)
Dim title As Label = bckp.GetView(1) 'title
title.Text = "Pizza Margherita 7 €"
Dim Stitle As Label = bckp.GetView(2) 'subtitle
Stitle.Text = "Sugo,Mozarella"
'Dim Prezzo As Label = bckp.GetView(3) 'nuova label posta dopo immagine, title e subtitle
'Prezzo.Text ="8 euro"
'Center cell panel
Dim cellpnl As Panel = bckpnl.getview(1) 'center cell
cellpnl.LoadLayout("lytCell")
Dim bckp As Panel = cellpnl.GetView(0)
Dim image As ImageView = bckp.GetView(0) 'image view
image.Bitmap = LoadBitmapSample(File.DirAssets,"pizw.png",bckp.Width, bckp.Height/2)
Dim title As Label = bckp.GetView(1) 'title
title.Text = "Pizza Wurstel 8 € "
Dim Stitle As Label = bckp.GetView(2) 'subtitle
Stitle.Text = "Pomodoro ,mozarella, Wurstel"
' Stitle.Ellipsize = "END"
'load Quantity, etc data too
'Right cell panel
Dim cellpnl As Panel = bckpnl.getview(2) 'right cell
cellpnl.LoadLayout("lytCell")
Dim bckp As Panel = cellpnl.GetView(0)
Dim image As ImageView = bckp.GetView(0) 'image view
image.Bitmap = LoadBitmapSample(File.DirAssets,"pizsal.png",bckp.Width, bckp.Height/2)
Dim title As Label = bckp.GetView(1) 'title
title.Text = "Pizza Sasisccia secca 5 €"
Dim Stitle As Label = bckp.GetView(2) 'subtitle
Stitle.Text = "Pomodoro ,mozarella, Sasiccia"
'load Subtitle, Quantity, etc data too
clvGrid.Add(rowpnl, cellheight, row) 'add the Row Panel to the CLV
Next
End Sub