Android Question xCustomListView : hide the scroll bar

DKnowles

Member
Licensed User
Longtime User
Hi,

Simple question, how do you hide the scroll bar from the right of the Custom List view, only have upto 50 items and the user work down them one at once.

B4X:
Sub Class_Globals
    Private Root As B4XView 'ignore
    Private xui As XUI 'ignore
    Private CLV1 As CustomListView
    Private PCLV1 As PreoptimizedCLV
end sub

Private Sub B4XPage_Created (Root1 As B4XView)
    
    Root = Root1
    Root.LoadLayout("B4XCLVNoDiv")
    Root.Color = Main.backgroundColour
    B4XPages.SetTitle(Me, "Select Monitoring")
    PCLV1.Initialize(Me, "PCLV1", CLV1)
    ..... some sql
    Do While rsMonitoringReadingElements.NextRow
        Select rsMonitoringReadingElements.GetInt("ReadingType")
            Case 100,101,102,103,104,105,106,115,136,137,141,142 : ViewHeight = 141dip
            ..... more Reading Types
        End Select
        PCLV1.AddItem(ViewHeight, xui.Color_White, rsMonitoringReadingElements.GetInt("ElementID"))
    Loop
    PCLV1.Commit
    
End Sub

Sub CLV1_VisibleRangeChanged & Sub PCLV_HintRequested implemented and working

This gives a simple list that the user can swipe up and down the screen all with indervidual layouts loaded as per the clients requirements
BUT it also give the vertical line with a blob on it for a scroll handle, don't need this how do we turn it off.

David
 

DKnowles

Member
Licensed User
Longtime User
OK, now after spending last two hours trying to find it , feel a little silly , click on the box that says "show scroll bar" , Thanks Erel
 
Upvote 0
Top