Android Question how to hide scroll on ScrollView

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

is there way hide scrollbar on Scrollview?

thank you
 

ykucuk

Well-Known Member
Licensed User
Longtime User
hello NJDude,

i dont want disable scrolling. i just want hide scrollbar( bar with button up and down).

i need users scroll to view
 
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi, Klaus. I had this problem and brutally copied the code, but it doesn't compile. There are several "RunMethod?" in reflector, but I didn't see any one using such parameters. What am I missing? Thanks in advance.. (In the meanwhile I will check again, so if the method exists and I just missed to see it, forget this question..)
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Sorry, my mistake, I simply copied the code from the oter post which is wrong.
Two errors in three lines .

It must be either with the Reflection library
B4X:
Dim r As Reflector
r.Target = ScrollView1
r.RunMethod 2("setVerticalScrollBarEnabled",False, "java.lang.boolean")
or with the JavaObject library.
B4X:
Dim jo = ScrollView1 As JavaObject
jo.RunMethod("setVerticalScrollBarEnabled", Array As Object(False))
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…