Fullscreen android app with tabgroup

You must Login before you can answer or comment on any questions.

I have an android app with a tabgroup. The question is, if there is a way to make it fullscreen? In my tiapp.xml I currently have:

<statusbar-style>default</statusbar-style>
<statusbar-hidden>true</statusbar-hidden>
<fullscreen>true</fullscreen>
<navbar-hidden>true</navbar-hidden>
However, when the app loads, I still have the status bar at the top (the bar with current time, battery, and connection info).

Thank you for any help!

2 Answers

In your project folder:

platform
--android
----res
------values
create theme.xml:
<?xml version="1.0" encoding="utf-8"?> 
<resources>
    <style name="Theme.Titanium" parent="android:Theme.NoTitleBar">
        <item name="android:windowBackground">@drawable/background</item>
    </style>
</resources>

— answered 8 months ago by Stephen Feather
answer permalink
5 Comments
  • Oh! Good one Stephen.

    — commented 8 months ago by Christian Brousseau

  • That gets rid of the extra 'app title' at the top of your windows.

    See if when combined with your tiapp.xml settings it doesn't get rid of the rest as well.

    Not at my desk, so cant run a test real quick.

    — commented 8 months ago by Stephen Feather

  • Thank you for the fast response! I've added the above xml to the values folder, as a result the splash screen shows without the status bar, but as soon as the application loads and the tabgroup shows up, the status bar is back again.

    — commented 8 months ago by Olga Ryzhikova

  • Show 2 more comments

Have you tried something simple like adding navBarHidden: true to your window definition?

var win = Ti.UI.createWindow({
   navBarHidden: true,
   /* other params */
});

— answered 8 months ago by Tim Poulsen
answer permalink
5 Comments
  • I'm wondering if there is a place to specify the navBarHidden attribute in case of the tabgroup?

    — commented 8 months ago by Olga Ryzhikova

  • I also think there is a confusion here between "Status Bar" and "Nav Bar". As I understand "Status Bar" is the system bar with time, battery and connection info. "Nav Bar" is where the window title appears. In my case "Nav Bar" does not show up, it's the "Status Bar" I want to get rid of. I'm just not sure if that's possible in case I use the tabGroup...

    — commented 8 months ago by Olga Ryzhikova

  • Well, dumb idea. This didn't work.

    According to this page, the properties you tried setting are all iOS-specific.

    I think Stephen's route of modifying the theme is going to be the way to go.

    — commented 8 months ago by Tim Poulsen

  • Show 2 more comments

Your Answer

Think you can help? Login to answer this question!