red30 Well-Known Member Licensed User Longtime User Nov 5, 2020 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Nov 8, 2020 #2 Add this code (change the event name as needed): Code: 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
Add this code (change the event name as needed): Code: 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