Android navBarHidden on app start
On Android, is it possible to start an app with the navBarHidden set to true, so that the splash screen doesn't show Nav Bar and quickly hide it again because the first window loaded has it hidden? I know there are some settings like this in tiapp.xml file, but I can't seem to find this one.
5 Answers
-
Accepted Answer
in your project navigate to build/android/res/values/theme.xml and change its contents to the following
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Titanium" parent="android:Theme.NoTitleBar.Fullscreen">
<item name="android:windowBackground">@drawable/background</item>
</style>
</resources>"android:Theme.NoTitleBar.Fullscreen" will give you a splash screen that is displayed as fullscreen, however, this seems to be overwritten after every "full" recompile
-
In tiapp.xml file change this
<fullscreen>true</fullscreen>
<navbar-hidden>true</navbar-hidden> -
Copy the file build/android/res/values/theme.xml change it to
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.Titanium" parent="android:Theme.NoTitleBar.Fullscreen"> <item name="android:windowBackground">@drawable/background</item> </style> </resources>
place the same file structure in your root directory under a folder called platform.
-
I want to know as well.
-
If you just want the NavBar hidden, then you can set the parent theme to android:Theme.NoTitleBar which hides the navbar but leaves the notification bar.