Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4945] Android: StatusBar showing even when fullscreen:true

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2011-08-09T22:56:38.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterColton Arabsky
AssigneeDon Thorp
Created2011-07-23T21:00:16.000+0000
Updated2017-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.

Comments

  1. Paul Dowsett 2011-07-25

    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
  2. Ivan Skugor 2011-07-26

    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:
       var win = Ti.UI.createWindow({
           fullscreen: true,
           //navBarHidden: true,
           backgroundColor: '#000'
       });
       
       win.open();
       
    Comment out "navBarHidden" for workaround.
  3. Paul Dowsett 2011-07-26

    Thanks for the additional info, Ivan. Once Colton fixes the main content of the ticket, I will move it across. Cheers
  4. Paul Dowsett 2011-08-08

    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
  5. Paul Dowsett 2011-08-09

    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 the fullscreen property shows/hides the status bar, and navBarHidden property shows/hides the title on Android.
  6. Lee Morris 2017-03-21

    Closing ticket as invalid.

JSON Source