'Initializes the BitmapProcessor class
BP.Initialize
BP.MinTiltAngle = -25 'The thumbnails will have a random rotation
BP.MaxTiltAngle = 25 'angle between -25 and +25 degrees
'Initializes the ULV
ULV.Initialize(100, 50, "", "ULV")
ULV.DividerHeight = 0
ULV.FastScroller(False)
ULV.SetPadding(0, 0, 0, 0)
ULV.NumberOfAsyncLoaders = 2
ULV.SetStyle(ULV.STYLE_HOLO_LIGHT)
ULV.OverscrollMaximum = 160dip
ULV.AddLayout("Refresher", "Refresher_LayoutCreator", "", 0, False)
ULV.SetLoadImageCallbacks("Bmp_Placeholder", "", "Bmp_PostLoad", "Bmp_LoadingError")
ULV.AddLayout("Bitmap2Lines", "Item_LayoutCreator", "Item_Filler",100dip, False)
ULV.AddLayout("ExtendedItem", "Item_LayoutCreator", "Item_Filler", 100%x + 70dip, False)
ULV.AddLayout("SiteSeparator", "SiteSeparator_LayoutCreator", "SiteSeparator_Filler", 35dip, False)
Activ.AddView(ULV, 0, 0, 100%x, Activ.Height)
Animator.Initialize(ULV,"Animator")
'AlphaAnimator.Initialize(ULV, "AlphaAnimator")
ULV.AnimationCleaner = True
ULV.Color = ULVcolors
Dim Image44 As Bitmap
Image44.Initialize(File.DirAssets,"MyBG.png")
Image44 = LoadBitmapSample(File.DirAssets,"MyBG.png",100%x,100%y)
ULV.SetBackgroundImage(Image44,Gravity.CENTER)
'Initializes the refresh state
RefreshState = RSTATE_WAITING
'Loads the status icons
ArrowDown.Initialize(File.DirAssets, "arrow_down.png")
ArrowUp.Initialize(File.DirAssets, "arrow_up.png")
LoadingTimer.Initialize("LoadingTimer", 2000)