{ "id": "61729", "key": "TIMOB-1097", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-16T19:38:05.000+0000", "created": "2011-04-15T02:43:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-06-27T15:29:37.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
There are a couple of possibly related problems with trying to\r\nrun a fullscreen application in Android. The first is with the\r\nsplash screen. There should be a way to have the splash screen\r\ndisplay on the whole screen, but this is not the case despite the\r\ntiapp.xml configuration in this screenshot which shows both the\r\nemulator and the code:
\r\nhttp://skitch.com/kwhinnery/dgmps/fullscreen
\r\nAlso, once the app launches, you should be able to open a window\r\nfullscreen with no title - this would be necessary for an app to go\r\ntotally fullscreen:
\r\nTo get the effect the res/values/theme.xml file is going to have\nto be updated to use a different base Theme based on the settings\nin tiapp.xml
\nFor just no title (navBarHidden : true) Theme.NoTitle instead of\njust Theme
\nFor truly fullscreen (navBarHidden : true, fullscreen : true)\nuse Theme.NoTitle.Fullscreen
Thank you Don, this post was a lifesaver. In order to get this\nwork in Titanium SDK 1.3.x, make the following changes:
\n-In theme.xml (res/values/theme.xml) file, change the the file\nto read the following:
\n\n\n\n\n\n
\n<item name=\"android:windowBackground\">@drawable/background</item>\n<item name=\"android:windowNoTitle\">true</item>
\n
\n\n\n\n\n
\n\n\n
-Now, in your window declaration, make sure both fullscreen:\ntrue and navBarHidden: true are set (or only the splash screen will\nappear fullscreen without a title). MAKE SURE THAT THE 'TITLE'\nvalue isn't set at all, not even to blank.
\nI look forward to the fix in 1.4!
\n-
Sorry! Let me fix my post a bit (should have RTFM on formatting\n:)
\nIn order to fix this in 1.3.x, do the following:
\n-In theme.xml (res/values/theme.xml) file, change the style\nelement to the file to read the following:
\n\n<style name=\"Theme.Titanium\" parent=\"@android:Theme.NoTitleBar.Fullscreen\">\n <item name=\"android:windowBackground\">@drawable/background</item>\n <item name=\"android:windowNoTitle\">true</item>`\n</style>
\n
\n-Now, in your window declaration, make sure both fullscreen:\ntrue and navBarHidden: true are set (or only the splash screen will\nappear fullscreen without a title). MAKE SURE THAT THE 'TITLE'\nvalue isn't set at all, not even to blank. Like so:
\n\nvar win1 = Titanium.UI.createWindow({\n backgroundColor:\"#eb367a\",\n fullscreen: true,\n navBarHidden: true,\n top:0\n});
\n
\nI look forward to the fix in 1.4!