B4A Question GestureDetector And Scrollview - cxbs (first post)    Aug 23, 2020 ("requestDisallowInterceptTouchEvent", Array(True))
Else If Action = GD.ACTION_UP Then
Dim jo As JavaObject = SV
jo.RunMethod("requestDisallowInterceptTouchEvent", Array(False))
'Removes the first painter from the list
Gesture_onPointerUp(0, 0, MotionEvent)
End If... Gesture_onTouch(Action As Int, X As Float, Y As Float, MotionEvent As Object) As Boolean
If Action=GD... B4A Question How implement a ScrollView that has Panels that can be swiped horizontally? - Inman    Nov 20, 2014 I am trying to implement a Google Now like card view where the user can remove a card by swiping it left or right. A scrollview holds my cards. How can I swipe it left or right? The scrollview should not scroll at that time. There is a requestDisallowInterceptTouchEvent method that can prevent touches from registering on a view. But somehow it doesn't work on ScrollView. If it had worked, I could have at least stopped the scrollview from scrolling and then worry about the left/right swipe.... B4A Question Using B4XSeekBar in CustomListView. - Erel (first post)    Nov 8, 2020   (2 reactions) Add this code (change the event name as needed): 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 ... B4i Question [SOLVED] B4i CLVDragger - drag to reorder items in customlistview - Binary01    Jul 16, 2021 Hi, I found the drag to reorder items in customlistview for B4A and B4j. I want to use this feature in b4i. I try to change b4a CLVDragger to b4i code. Label has no touch event so I Add a panel then add label inside. Dim r As Reflector r.Target = lbl r.SetOnTouchListener("lbl_Touch") I think above reflector code with touch event may be work. Second Reflector Code is Dim r As Reflector r.Target = list.sv r.RunMethod2("requestDisallowInterceptTouchEvent", True... B4A Question Scrollable view in scrollable view - Erel (first post)    Jun 11, 2018 Text doesn't have to be editable but view should be scrollable. I can have 1 sentence with few words and 10 lines of text and editview of same height. Why not add items with different height based on the content? Like done with CLV.AddTextItem. It is not really possible to solve this problem as you cannot know what the user wants when the user slides the finger over the list. Related discussions: https://www.b4x.com/android/forum/pages/results/?query=requestDisallowInterceptTouchEvent... B4A Question Scrollview inside another Scrollview will not scroll - jinxaw (first post)    Oct 6, 2015 Hi,
@raenzenkane: Did your solution work out as needed? I have a very similar problem right now, but i don't know where to put the reflection part. In the 2nd scrollview the scrollchanged event is never raised. So where do i put the requestDisallowInterceptTouchEvent(true)? :(
best regards,
Daniel... French AHViewPager (comment bloquer le scrolling latéral) - john mad doe (first post)    Jan 3, 2014 .RunMethod2("requestDisallowInterceptTouchEvent", True, "java.lang.boolean")
End Sub...")
Dim r As Reflector
r.Target = pager
r.RunMethod2("requestDisallowInterceptTouchEvent"... B4A Question Touch event for a panel on a scrollview. - Roger Garstang (first post)    Jan 2, 2013 You will need to send requestDisallowInterceptTouchEvent to the parent of the control/view getting the touch event. It works best in the Move Action. There are some examples here and it is easy to do in a library too if you are good in Eclipse.... B4A Question move panel on scrollview using touch - mterveen (first post)    Jun 26, 2013 panel movement in scrollview posting this for anybody else's benefit. was able to resolve the issue by adding the following code: Dim r as Reflector r.Target = sv 'name of scrollview r.RunMethod2("requestDisallowInterceptTouchEvent", True, "java.lang.boolean") to my down event in the touch sub routine.... B4A Library [Library] Line Layout - Roger Garstang (first post)    Jan 31, 2013 Just added some requestDisallowInterceptTouchEvent tweaks- Since this is a Scrollview base class which captures Move events to scroll it interferes with some views that also scroll placed in it. I already had a Touch event handler for multiline Textboxes added with AddTextbox that sent requestDisallowInterceptTouchEvent to the parent to allow them to scroll without the parent grabbing the move events. Buttons added with AddButton containing custom Up/Down resource images also used... Page: 1   2   3   4   5   6   7   |