{ "id": "62306", "key": "TIMOB-1674", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11227", "name": "Release 1.5.0 M02", "archived": true, "released": true, "releaseDate": "2010-11-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:50.000+0000", "created": "2011-04-15T02:59:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "default.png", "feature", "landscape", "orientation", "scaling", "screen", "splash" ], "versions": [], "issuelinks": [], "assignee": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56: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": "{html}

On Android, the default.png splash screen image gets stretched\nto the full native screen size while it's displaying. This is\nreasonably ok when in portrait mode on most phones (though your\nimage will be stretched a bit vertically on a Nexus 1 or Droid),\nbut when in landscape mode the image actually changes orientation,\nand is now stretched vveerryy wwiiddee which doesn't look very\ngood.

\n

This is particularly bad on tablet/netbook form factors where\nyou're more likely to be in landscape mode while launching an\napplication.

\n

For the moment I've worked around this in StatusNet Mobile by\nhacking up the resource settings to set the image to centered\ninstead of stretched; this cuts off the top and bottom in landscape\nmode (but the core part of our image fits and looks correct), and\nwill probably lead to a smaller-than-fullscreen image on tablet\ndevices. Since this requires changing the generated resource files,\nI had to put another hack into our local fork of the library:

\n

\nhttp://github.com/brion/titanium_mobile/commit/8f5586dd9f40b34e04c6...

\n

In researching this issue, I discovered that\norientation-specific splash screens can be set up on iPad:
\n\nhttp://developer.appcelerator.com/question/24271/ipad-default-image...

\n

Handy! It might be a good idea to include similar support for\nAndroid, but I'm not sure whether that can be easily implemented\nusing the theme.xml background settings currently used for the\nsplash screen.

\n

Assigning to our support contact.

{html}", "attachment": [], "flagged": false, "summary": "Android splash screen stretched horizontally in landscape mode", "creator": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126338", "author": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

It looks like portrait and landscape variants could be provided\nusing alternate resource subdirs:

\n

\nhttp://developer.android.com/guide/topics/resources/providing-resou...

\n

So something like this may work:
\ndefault.png -> res/drawable/background.png\ndefault-landscape.png -> res/drawable-land/background.png *\ndefault-portrait.png -> res/drawable-port/background.png

{html}", "updateAuthor": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:59:06.000+0000", "updated": "2011-04-15T02:59:06.000+0000" }, { "id": "126339", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Also see Helpdesk\n46331

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:59:06.000+0000", "updated": "2011-04-15T02:59:06.000+0000" }, { "id": "126340", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [a5d1f9ca078ebc5a16ede06c5ca2ea839ff09d0d])\n[#1674 state:fixed-in-qa] Added support to detect\nconfiguration changes and use the correct splash screen. You need\nto place a file named background.png into the appropriate\ndirectories in /platform/android so that they get copied into the\nbuild. For example to have a medium density landscape background\ncreate the /platform/android/drawable-land-mdpi folder and put the\nappropriate background.png there. It must be named background.png\nbecause that is what the theme expects. To test simply put your\ndevice in the appropriate orientation and start the application.\nKitchenSink has been updated to have a graphic for landscape\n\nhttps://github.com/appcelerator/titanium_mobile/commit/a5d1f9ca078e...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:59:07.000+0000", "updated": "2011-04-15T02:59:07.000+0000" }, { "id": "126341", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

resolved, Thanks Opie. confirmed this fixed with 1.6/2.1

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:59:07.000+0000", "updated": "2011-04-15T02:59:07.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }