B4J Question How to use B4XDrawer?

Chris Guanzon

Active Member
Licensed User
Longtime User
Anyone know how to use B4XDrawer in B4J? I want to use it in my desktop app. I tried using it but i don't know what to put in the "activity"

B4X:
Drawer.Initialize(Me, "Drawer", Activity, 85%x)
 

DonManfred

Expert
Licensed User
Longtime User
I don´t think that you can use it in B4J. The drawer is a Android Feature.
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Months ago I designed something similar to B4xDrawer for B4J, but never finalized it. So it was not published.
The basic idea is really simple: two panels, where left (or menu) panel slides in/out covering part of main panel which gets covered by a partially transparent third panel so to intercepts clicks on areas not covered by the menu panel.
 
Upvote 0

Chris Guanzon

Active Member
Licensed User
Longtime User
The complicated stuff in B4XDrawer (which is a B4A / B4i library) is to handle the gesture. This is less relevant on the desktop.
Implementing a drawer without a gesture should be simple. Just create a panel and slide it with B4XView.SetLayoutAnimated.

The reason why is because i want to use a touchscreen monitor for my app using windows/linux os. Anyway, I already use B4XView.SetLayoutAnimated, but pane doesn't have elevation property like panel in b4a.
 
Upvote 0

Chris Guanzon

Active Member
Licensed User
Longtime User
I just like the shadow in panel when you add elevation. Anyway, i will stick to b4xview.setlayoutanimated for now. I wish elevation will be added in Pane in the next update to add more beauty to User Interface. :) Thanks a lot for the answer.
 
Upvote 0
Top