Android Question How can I drag a view to expand a panel

tsteward

Well-Known Member
Licensed User
Longtime User
Attached is a sample app. It shows a webview with a button below it.
Clicking the button hides the webview, moves the button and displays a panel.
Clicking it again reverses the process.

It works but it's ugly.
How might I go about making it draggable and work in both B4A and B4I

I considered AS_DraggableBottomCard but it seems to have a halfway or fully open setting
I would like it closed or even better closed to the bottom of the view above (in this case its a webview for demonstration purposes)
 

Attachments

  • Project.zip
    14.2 KB · Views: 6

Alexander Stolte

Expert
Licensed User
Longtime User
but it seems to have a halfway or fully open setting
And where is the problem? set both values to the same value and the panel has only one height, set 2 different values and it can be extended 2x. If the user pulls it down, it is closed.
 
Upvote 0
Top