Sub FillHorizontalScrollView
Dim BitmapCadena(21) As Bitmap
Dim Panel0 As Panel
Dim PanelTop, PanelHeight, PanelWidth As Int
BitmapCadena(0).Initialize(File.DirAssets,"1.antena3.jpg")
BitmapCadena(1).Initialize(File.DirAssets,"2.telecinco.jpg")
BitmapCadena(2).Initialize(File.DirAssets,"3.la-sexta.jpg")
BitmapCadena(3).Initialize(File.DirAssets,"4.canal_sur.jpg")
PanelTop=0
Panel0=HorizontalScroll.Panel
Panel0.Color=Colors.Gray
For i=0 To 3 'Para hacer los 21 que habias declarado pon esto: BitmapCadena.Length-1
Dim Panel1 As Panel
Dim ImageView1 As ImageView
Panel1.Initialize("View")
Panel1.Tag=i
PanelHeight=72dip
PanelWidth=72dip
Panel0.AddView(Panel1,PanelTop,0,PanelWidth,PanelHeight)
'Panel1.Color=Colors.Black
ImageView1.Initialize("View")
ImageView1.Tag=i
Panel1.AddView(ImageView1,0dip,0dip,72dip,72dip)
ImageView1.Bitmap=BitmapCadena(i)
PanelTop=PanelTop+PanelWidth+1dip
Next
Panel0.Width=PanelTop
End Sub