Gestures

dibesw

Active Member
Licensed User
Longtime User
Whe I use gestures dll I write:
B4X:
g.SetOnTouchListener(bgd, "GesturesTouch")
What is the command that disable GesturesTouch?

Ragards
 

dibesw

Active Member
Licensed User
Longtime User
...because the panel that contains GesturesTouch is to front some edittext;
after drawing I save the image and want disable or remove GesturesTouch.

Layout is:

gestures.jpg
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
There is no way to remove the listener, though I suppose you could try setting it to null with the Reflection library, but I don't understand why you would need to anyway. You could set a global flag and check it in your listener to to see whether to ignore gestures.
 
Upvote 0

dibesw

Active Member
Licensed User
Longtime User
explain better:
I wish fill some text;
then I wish draw a sign into a panel with:

panel1.visible=true
g.SetOnTouchListener(bgd, "GesturesTouch")

after signing in this panel I wish remove GesturesTouch;
then I do
panel1.visible=false
but now if I can not do this so that I can draw again:

gestures1.jpg


but I do not want to draw more...
 
Last edited:
Upvote 0
Top