Android Question Using B4XSeekBar in CustomListView.

red30

Well-Known Member
Licensed User
Longtime User
If I use B4XSeekBar in the CustomListView, then when I move the slider, the screen scrolls. If I use the standard SeekBar everything works fine. This is clearer in the video with touch mapping.

B4XSeekBar is very difficult to use in CustomListView, since you only have to move your finger in a straight line, otherwise the list moves. I need to use B4XSeekBar, because it is a cross-platform element.
How do I get B4XSeekBar to work fine with CustomListView?
 
Add this code (change the event name as needed):
Code: Copy
Private Sub B4XSeekBar1_TouchStateChanged (Pressed As Boolean)
    #if B4A
    Dim v As B4XSeekBar = Sender
    Dim jo As JavaObject = v.mBase.Parent
    jo.RunMethod("requestDisallowInterceptTouchEvent", Array(Pressed))
    #End If
End Sub
 
Upvote 0

Similar Threads

Back
Top