For i = 0 To Bitmaps.Size - 1
Dim iv As ImageView 'create an ImageView for each bitmap
iv.Initialize("") 'not interested in any events so we pass empty string.
Dim bd As BitmapDrawable
bd.Initialize(Bitmaps.Get(i))
bd2 = bd.Bitmap
bd3 = btmpex.rotateBitmap(bd2,90)
iv.bitmap = bd3 'set the background of the image view.
'add the image view to the scroll bar internal panel.
scvPics.Panel.AddView(iv, 5dip, 5dip + i * 240dip, scvPics.Width - 10dip, 190dip)
'add the lable
Dim lbl As Label
lbl.Initialize("")
lbl.Gravity = Gravity.CENTER_HORIZONTAL
scvPics.Panel.AddView(lbl, 5dip, 5dip + i * 240dip + 195dip, scvPics.Width - 10dip, 35dip)
lbl.Text = ImageTitles.Get(i)
Next