Scrollview not scrolling.

Hi i am trying to use a Scroll view, ive set height to 1300 and added a few bitmaps.

When i run it i can see only part of the bitmap at the bottom of the page but when i try and scroll i get no response.

Here is the code:
B4X:
#Region  Activity Attributes 
   #FullScreen: False
   #IncludeTitle: True
#End Region

Sub Process_Globals
   'These global variables will be declared once when the application starts.
   'These variables can be accessed from all modules.
   
End Sub

Sub Globals
 'These global variables will be redeclared each time the activity is created.
 'These variables can only be accessed from this module.
Dim Scroll1 As ScrollView
   SetupScrollView
End Sub
 
Sub Activity_Create(FirstTime As Boolean)
 Activity.LoadLayout("levelmenudesign")


End Sub
 
Sub Activity_Resume
End Sub
 
Sub Activity_Pause (UserClosed As Boolean)
End Sub
 
Sub ImageView1_Click
   StartActivity(Main)
End Sub

Sub SetupScrollView
   Dim level1button As ImageView
   Dim level1buttonimage As Bitmap
   level1buttonimage.Initialize(File.DirAssets, "level1button.png")
   level1button.Initialize("levelbutton")
   level1button.Bitmap = level1buttonimage
   Scroll1.Panel.AddView(level1button, 40, 20, 300, 300)
   
   Dim level2button As ImageView
   Dim level2buttonimage As Bitmap
   level2buttonimage.Initialize(File.DirAssets, "level2button.png")
   level2button.Initialize("levelbutton")
   level2button.Bitmap = level2buttonimage
   Scroll1.Panel.AddView(level2button, 40, 300, 300, 300)
   
   Dim level3button As ImageView
   Dim level3buttonimage As Bitmap
   level3buttonimage.Initialize(File.DirAssets, "level3button.png")
   level3button.Initialize("levelbutton")
   level3button.Bitmap = level3buttonimage
   Scroll1.Panel.AddView(level3button, 40, 600, 300, 300)
End Sub

Thanks, James.
 
Top