B4i Question Handel B4XSeekBar and ScrollView - mehdipass (first post)    Dec 3, 2022 Hi,
I solved it.
Use this code:
Private Sub b4xseek_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
#if B4I
ScrollView1.ScrollEnabled = Not(Pressed)
#End If
End Sub
It works well.... 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 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 ... 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.... 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 Tutorial Intent Filters - Intercepting SMS messages in the background - Erel    Jan 13, 2023   (15 reactions) that can handle broadcasted messages. These messages usually notify about a system event... Basic4android you can register dynamic receivers with the BroadcastReceiver library. PhoneEvents and... killed. This means that you cannot rely on dynamic receivers to intercept intents when your... be intercepted with dynamic receivers. Static receivers Each service module in Basic4android is made... intercepts the intent and wakes the service. If we want to listen for intents we need to define... Page: 1   2   3   4   5   6   7   |