Disable a Scrollview from scrolling

thughesimsuk

Member
Licensed User
Longtime User
Seems like a simple one but I cant figure it out, I have a scrollview with pannels all I want to do is stop anyone being able to scroll? I have tried the following to no avail,

B4X:
ScrollView1.Panel.Enabled =False
B4X:
Dim r As Reflector
   r.Target = ScrollView1.Panel
             r.RunMethod ("setVerticalScrollBarEnabled",False, "java.lang.boolean")
 

klaus

Expert
Licensed User
Longtime User
I don't know if it's possible to disable the scrolling.
As a workaround you could put a transparent Panel over the scrollview with an empty touch event consuming it.

Why do you want to disable the scrolling?

Best regards.
 
Upvote 0

thughesimsuk

Member
Licensed User
Longtime User
I have a grid with a pop-up window, I just didn't want the users scrolling when the popup window is available. I have an imageview which covers the whole screen, How would I go about setting it as an empty touch event??

Thanks


I don't know if it's possible to disable the scrolling.
As a workaround you could put a transparent Panel over the scrollview with an empty touch event consuming it.

Why do you want to disable the scrolling?

Best regards.
 
Upvote 0
Top