[TIMOB-1097] Android: Titlebar is displayed when fullscreen splash screen is used.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-05-16T19:38:05.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.1.0 |
Components | Android |
Labels | api |
Reporter | Kevin Whinnery |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:43:59.000+0000 |
Updated | 2012-06-27T15:29:37.000+0000 |
Description
There are a couple of possibly related problems with trying to run a fullscreen application in Android. The first is with the splash screen. There should be a way to have the splash screen display on the whole screen, but this is not the case despite the tiapp.xml configuration in this screenshot which shows both the emulator and the code:
http://skitch.com/kwhinnery/dgmps/fullscreen">http://skitch.com/kwhinnery/dgmps/fullscreen
Also, once the app launches, you should be able to open a window fullscreen with no title - this would be necessary for an app to go totally fullscreen:
http://skitch.com/kwhinnery/dgmp7/fullscreen">http://skitch.com/kwhinnery/dgmp7/fullscreen
Test Code
in theme.xml
<?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>
To get the effect the res/values/theme.xml file is going to have to be updated to use a different base Theme based on the settings in tiapp.xml
For just no title (navBarHidden : true) Theme.NoTitle instead of just Theme
For truly fullscreen (navBarHidden : true, fullscreen : true) use Theme.NoTitle.Fullscreen
Thank you Don, this post was a lifesaver. In order to get this work in Titanium SDK 1.3.x, make the following changes:
-In theme.xml (res/values/theme.xml) file, change the the file to read the following:
-Now, in your window declaration, make sure both fullscreen: true and navBarHidden: true are set (or only the splash screen will appear fullscreen without a title). MAKE SURE THAT THE 'TITLE' value isn't set at all, not even to blank.
I look forward to the fix in 1.4!
-
Sorry! Let me fix my post a bit (should have RTFM on formatting :)
In order to fix this in 1.3.x, do the following:
-In theme.xml (res/values/theme.xml) file, change the style element to the file to read the following:
-Now, in your window declaration, make sure both fullscreen: true and navBarHidden: true are set (or only the splash screen will appear fullscreen without a title). MAKE SURE THAT THE 'TITLE' value isn't set at all, not even to blank. Like so:
I look forward to the fix in 1.4!
rollback wrong update
Requesting a schedule for this fix in the next patch for a customer - MobiManage. Even though there is a work-around, customer is requesting a full fix for this.
Setting
Verified fix with Titanium Studio, build: 2.1.0.201206251749 Titanium SDK: 2.1.0.v20120626204252 LG VS910 4G Android version 2.3.6