Android Question B4X Sliding Drawer Question

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
All,
I've extended (hacked) the drawer to allow you to pull it from the top as well as from the side.

See attached. (The drag works on the bottom panel rather than the whole screen.)
It's not very good at the moment at there is lots of repeated code which I'm sure could be made more efficient.

There are a couple of extra things I wanted to change and I can't quite work them out, so I thought I would ask the community at large.

1. How to adjust the start drag width so that you can start the drag from further away from the top or left side. When dragging from the top you seem to need to be really precise about where you start dragging from.
2. I want to show a little bit of the drawer panel to let the user know it it there and then they can drag the drawer out by touching this and dragging.
upload_2018-11-14_14-18-22.png


Thanks

Andrew
 

Attachments

  • b4a_b4xdrawerfromtop.zip
    15 KB · Views: 183
Top