Private Sub CreateItem(Width As Int, Title As String, id As String, nombre As String, descripcion As String, precio As String, items As String )
Dim p As B4XView = xui.CreatePanel("")
Dim height As Int = 155dip
If GetDeviceLayoutValues.ApproximateScreenSize < 4.5 Then height = 170dip
Dim cd As CardData
cd.Initialize
cd.Title = Title
cd.id = id
cd.nombre = nombre
cd.descripcion = descripcion
cd.precio = precio
cd.items = items
p.SetLayoutAnimated(0, 0, 0, Width, height)
CLV.Add(p, cd)
End Sub