How to desactivate Side Menu & toolBar?

24 views
Skip to first unread message

Amine

unread,
Sep 10, 2020, 9:48:29 AM9/10/20
to CodenameOne Discussions
Hi Shai,
I want to deactivate/remove Sidemenu and toolbar from my app. I add to the Build hints this parameter android.statusbar_hidden = true and android.statusbar_hidden = true but it does not work?
plz Help
Kind regards,

IDE: NetBeans 12
Desktop OS
Simulator
Device
cndo.png

Shai Almog

unread,
Sep 11, 2020, 12:02:53 AM9/11/20
to CodenameOne Discussions
Hi,
status bar is the bar at the top containing the time/date etc. It has nothing to do with the sidebar/menu.

If you don't want those to appear don't add any command to the menu and they won't show.
When you press on the menu what does it show?
Find that command and remove it from your code.

Amine

unread,
Sep 13, 2020, 7:38:13 AM9/13/20
to CodenameOne Discussions
Hi,
It show me button Back that i did not add programmatically.
Kind regards,
cndo1.png

Shai Almog

unread,
Sep 13, 2020, 9:37:55 PM9/13/20
to CodenameOne Discussions
Hi,
are you using the old GUI builder?
If so it  adds back navigation implicitly by default.

Amine

unread,
Sep 14, 2020, 10:39:44 AM9/14/20
to CodenameOne Discussions
Hi,
Yes i use the old GUI builder, is there any solution and how can i corrected?

Shai Almog

unread,
Sep 14, 2020, 9:47:13 PM9/14/20
to CodenameOne Discussions
I haven't used that in ages and would strongly recommend you migrate away so my memory might be hazy. I think just calling setBackCommandEnabled(false) will disable this functionality.
Reply all
Reply to author
Forward
0 new messages