Android Question How to open the default drawer by code

EduardoElias

Well-Known Member
Licensed User
Longtime User
I am using this:
Activity.AddMenuItem("Login", "login")
I have removed the default StdActionBar for a Panel, since the Action bar is lacking in functions
However the drawer menu is important, I replaced it using a button and want to open the menu
How?
 

EduardoElias

Well-Known Member
Licensed User
Longtime User
Are you using B4XPages?
Why not use B4XDrawer?

I am not using B4XPages, this project is older and very big.

I was using the StdActionBar, I removed it in order to use a simple panel and that I can draw more controls on it...

Can I use the B4XDrawer on it?

Otherwise how can I force to open the standard drawer menu?
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
just FYI, Activity.OpenMenu will open your menu. when you click on your button, call it. in my case, it opens from the bottom of the screen (which may not be what you want), but it does open. there might be a setting you can access to get it to move itself to the upper right, but i was satisfied as is.
 
Upvote 0

asales

Expert
Licensed User
Longtime User
is it possible to open the drawer in the right side, using the library that comes with the b4a already?
Not with the library, but with this modified class:
 
Upvote 0
Top