move panel on scrollview using touch

mterveen

Member
Licensed User
Longtime User
uploaded a test program. i am trying to move a panel on a scrollview using touch. i can easily move a panel that is a child of a main panel but i am having issues moving a panel that is a child of the scrollview panel. the touch event keeps cancelling out.

help? would really like to use a scrollview/scrollview2d for my project vs sliding panels.
 

Attachments

  • touch.zip
    6.6 KB · Views: 435

mterveen

Member
Licensed User
Longtime User
panel movement in scrollview

posting this for anybody else's benefit. was able to resolve the issue by adding the following code:

B4X:
    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.
 
Upvote 0
Top