[TIMOB-4945] Android: StatusBar showing even when fullscreen:true
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-08-09T22:56:38.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Colton Arabsky |
Assignee | Don Thorp |
Created | 2011-07-23T21:00:16.000+0000 |
Updated | 2017-03-21T21:11:36.000+0000 |
Description
Since 1.7.2, the following properties in _tiapp.xml_ have no affect on Android. Use-case is simple, just create window with "fullscreen" property and make sure tiapp.xml has the following nodes:
<statusbar-hidden>true</statusbar-hidden>
<fullscreen>true</fullscreen>
<navbar-hidden>true</navbar-hidden>
The nav bar is still shown when you create a window.
var win = Ti.UI.createWindow({
fullscreen: true,
//navBarHidden: true,
backgroundColor: '#000'
});
win.open();
Setting "navBarHidden" property to "true" when creating window solves this issue.
Colton Thanks for raising this ticket. Would you provide a full example of the tiapp.xml file you are using, using the code block markdown provided, and a short [usecase](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases) that demonstrates the issue? Also, please copy and paste the version, including build date and hash, of Titanium that you have tested. This will be output to the console as the app starts. This will allow me to move the ticket across to the correct project. Thanks
I've discovered some more info about this issue. Setting "navBarHidden" property to "true" when creating window solves this issue. Use-case is simple, just create window with "fullscreen" property and make sure tiapp.xml has above mentioned nodes:
Comment out "navBarHidden" for workaround.
Thanks for the additional info, Ivan. Once Colton fixes the main content of the ticket, I will move it across. Cheers
Colton I will move this across this time, but I urge you to read the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist) if you are going to raise tickets in future. Thanks
This behavior is as expected - these
tiapp.xml
settings are only effective for the splashscreen/root "window". Any subsequent heavyweight windows must be explicitly configured via object properties. Please also be aware that thefullscreen
property shows/hides the status bar, andnavBarHidden
property shows/hides the title on Android.Closing ticket as invalid.