Showing/Hiding the Action Bar While Running (Android)
Showing/Hiding the Action Bar While Running (Android)
The menu in the default title bar on the Android player gives the option to hide the title bar and force the display to fill the screen. Since this option is available while the program is running, would it be possible to add a function that would allow the action bar to be shown/hidden programmatically---possibly included as an option in SetDisplayAttributes()?
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Showing/Hiding the Action Bar While Running (Android)
Should already be possible. Try:
Code: Select all
@DISPLAY {HideTitleBar = True}
Re: Showing/Hiding the Action Bar While Running (Android)
I was hoping for a way to do it after the program has already started (after the preprocessor commands have been executed).
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Showing/Hiding the Action Bar While Running (Android)
Have you tried
?
Code: Select all
SetDisplayAttributes({HideTitleBar = True})
Re: Showing/Hiding the Action Bar While Running (Android)
Tried it; but it doesn't seem to work.
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Showing/Hiding the Action Bar While Running (Android)
Right, I can add this then.
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Showing/Hiding the Action Bar While Running (Android)
Code: Select all
- New [Android]: You can now show and hide the status bar by setting the "HideTitleBar" attribute using
SetDisplayAttributes()
Re: Showing/Hiding the Action Bar While Running (Android)
Will this also add the possibility to use SetDisplayAttributes() to force an app to go fullscreen in android?
As it is now, I could not get that to work.
As it is now, I could not get that to work.
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Showing/Hiding the Action Bar While Running (Android)
Have you tried ChangeDisplayMode() for that purpose?
Re: Showing/Hiding the Action Bar While Running (Android)
Thanks, I will try it.