Android Question how to implement draggable panel?

FrankBerra

Active Member
Licensed User
Longtime User
Hi all

I created an app with a sliding panel that comes in from the left of the screen when i press a button and hides when i press the button again.
It is like a menu implemented on many apps.

Now i want to make that panel draggable by finger so i can hide it by swiping on it instead of pressing the button.

I used DraggableView class explained here: https://www.b4x.com/android/forum/threads/classes-are-soon-coming.18395/#content
I can drag the panel around but now i can't touch the other panels contained in the draggable panel.
So i tried to put "Return False" in "Sub Panel1_Touch" to let the event pass trough it but now i can't drag the panel.

Is there a workaround? How other apps implement this?

Thanks in advance
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top