{ "id": "135542", "key": "TIMOB-17571", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-09-15T19:36:23.000+0000", "created": "2014-08-28T20:11:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "actionbar", "nine-patch", "splash-screen" ], "versions": [], "issuelinks": [ { "id": "41137", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "135353", "key": "TIMOB-17563", "fields": { "summary": "Android: Image incorrectly sized when using windowBackground with custom theme ", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:23:50.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": "If you follow the guide to hide the ActionBar using a custom theme and at the same time also follow the guide to use 9-patch splash screens the application window will be small and sitting in the top left of the screen, uncovering the splash screen under it, as shown in the attached screenshot.\r\n\r\nh1. The guides\r\n\r\nJust before the 3 steps for custom themes, the introduction of the following splash-guide says you do *not* need a custom theme if you just name your 9-patch splash screen images {{background.9.png}}:\r\n\r\n- http://docs.appcelerator.com/titanium/latest/#!/guide/Icons_and_Splash_Screens-section-29004897_IconsandSplashScreens-Androidsplashscreenconsiderations\r\n\r\nThe following actionbar-guide shows how to use a {{custom_theme.xml}} together with a small change in {{tiapp.xml}} to hide the action bar on all windows:\r\n\r\n- http://docs.appcelerator.com/titanium/latest/#!/guide/Android_Action_Bar-section-36735509_AndroidActionBar-HidingtheActionBar\r\n\r\nh1. The problem\r\n\r\nBoth of these guides at themselves work just fine. But when you follow both of them you'll get the problem described.\r\n\r\nh1. Steps to reproduce\r\n\r\n1. Download the attached example project\r\n2. Build to see the expected white application window\r\n3. Rename {{platform/android/res/_drawable}} to {{drawable}}\r\n4. Build to see the white application window in the top left\r\n\r\nh1. Explored solutions\r\n\r\nI've tried several changes such as using {{android:windowActionBar}} instead of {{windowActionBar}} or setting the splash in a custom theme, but nothing helped. I also compared the builds after step 2 and 4 of the steps laid out to reproduce. All the (non-binary) files were 100% identical, so the error must be in the compiled JAVA and not in the generated XML themes.\r\n\r\nh1. Workaround\r\n\r\nI can't think of a (satisfying) workaround, so I hope this can be fixed soon.", "attachment": [ { "id": "50837", "filename": "Screen Shot 2014-08-28 at 22.15.10.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-08-28T20:15:45.000+0000", "size": 166859, "mimeType": "image/png" }, { "id": "50836", "filename": "splashbar.zip", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-08-28T20:11:46.000+0000", "size": 71891, "mimeType": "application/zip" } ], "flagged": false, "summary": "Hiding the ActionBar using a custom theme misforms app when also using a 9-patch splash screen", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK/CLI 3.3.0.GA\r\nAndroid 4.3\r\nSamsung Galaxy S4 (emulator)\r\nMac OS X 10.9.4", "closedSprints": [ { "id": 219, "state": "closed", "name": "2014 Sprint 19 SDK", "startDate": "2014-09-18T21:06:27.559Z", "endDate": "2014-09-27T00:00:00.000Z", "completeDate": "2014-09-29T13:58:58.022Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "320864", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "The app window (white) showing on top left of screen, uncovering the nine-patch splash.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-08-28T20:15:45.000+0000", "updated": "2014-08-28T20:15:45.000+0000" }, { "id": "323621", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Can I please get some love on this one [~ingo]? Without this resolved I'm stuck at 3.2.3.GA for apps what want no actionbar and use 9-patch slash screens.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-09-15T12:13:35.000+0000", "updated": "2014-09-15T12:13:35.000+0000" }, { "id": "323623", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Still an issue in 3.4.0.RC", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-09-15T12:18:23.000+0000", "updated": "2014-09-15T12:18:23.000+0000" }, { "id": "323762", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-15T19:34:51.000+0000", "updated": "2014-09-15T19:47:04.000+0000" }, { "id": "323902", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I can't access TIMOB-17563, but am I right that the docs have been updated? The attached test case had other code copied from the docs:\r\n\r\n{code:xml}\r\n\r\n\r\n \r\n \r\n{code}\r\n\r\nChanging it to your example (or the slightly different - android:windowActionBar - in the docs) fixed it. Thx!", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-09-16T07:38:14.000+0000", "updated": "2014-09-16T07:38:14.000+0000" }, { "id": "324241", "author": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "body": "Permission Violation when trying to access TIMOB-17563", "updateAuthor": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-17T15:39:28.000+0000", "updated": "2014-09-17T15:39:28.000+0000" }, { "id": "324247", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-17T15:47:56.000+0000", "updated": "2014-09-17T15:47:56.000+0000" }, { "id": "414100", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:23:50.000+0000", "updated": "2017-03-20T22:23:50.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }