Wish CustomListView: Set its ScrollView's ScrollBar visibility programmatically.

ShaneG30

Well-Known Member
Licensed User
Would it be possible to allow us to set the scrollbar of the scrollview (in CustomListView) programmatically?
 

ShaneG30

Well-Known Member
Licensed User
B4X:
Public Sub CustomListViewScrollBarVisible (CLV As CustomListView, Visible As Boolean)
    #If Not (B4i)
    Dim Jo As JavaObject
    Jo = CLV.sv
    Jo.RunMethod("setVerticalScrollBarEnabled", Array(Visible))
    #Else
    Dim No As NativeObject
    No = CLV.sv
    No.SetField("showsVerticalScrollIndicator", Visible)
    #End If
End Sub
 
Top