{ "id": "77625", "key": "TIMOB-4623", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-07-08T10:38:19.000+0000", "created": "2011-07-08T08:34:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "11367", "description": "", "name": "Release 1.7.1", "archived": true, "released": true, "releaseDate": "2011-06-21" } ], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-05T08:57:54.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": "9 patch/slice/scale (whatever you want to call it) images are not showing up in 1.7.1. Previous to 1.7.1 the attached project and code worked.\r\n\r\n{code}\r\n var mainWindow = Titanium.UI.createWindow(\r\n {\r\n backgroundColor: \"white\"\r\n });\r\n\r\n var button = Titanium.UI.createButton(\r\n {\r\n title: \"Help\", \r\n width: 200, \r\n height: 30,\r\n backgroundLeftCap : 5,\r\n backgroundTopCap : 0,\r\n backgroundImage: \"images/header.png\"\r\n });\r\n mainWindow.add(button);\r\n mainWindow.open();\r\n{code}\r\n", "attachment": [ { "id": "21757", "filename": "exampleshots.zip", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-07-08T08:34:04.000+0000", "size": 39118, "mimeType": "application/zip" }, { "id": "21756", "filename": "StudioTest.zip", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-07-08T08:34:04.000+0000", "size": 2560061, "mimeType": "application/zip" } ], "flagged": false, "summary": "Problem with Android 9 Patch Images on 1.7.1", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": "Android SDK 2.2", "comment": { "comments": [ { "id": "159020", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "9 Patch images MUST be named with .9.png. Also they should be using the density versions now and not loading them on the fly out of the images directory.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-08T09:35:13.000+0000", "updated": "2011-07-08T09:35:13.000+0000" }, { "id": "159082", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If your image is named \"header.9.png\" you will want to refer to is as \"header.png\" and not \"header.9.png\".\r\nAlso, if you have an image named \"header.png\" in the Resources directory, it will override the image in the density specific folder. ", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-08T16:23:48.000+0000", "updated": "2011-07-08T16:23:48.000+0000" }, { "id": "159488", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Don,\r\nAre we expecting users to be forced to detect the platform in order to load the appropriate image?", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-07-14T06:01:27.000+0000", "updated": "2011-07-14T06:01:27.000+0000" }, { "id": "162867", "author": { "name": "hwoolery", "key": "hwoolery", "displayName": "Hart Woolery", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think it'd be more efficient to be able to use a single 9-patch image universally or a single non-9-patch image universally... something like this could be easily integrated into the iphone side: http://blog.tortuga22.com/2010/05/31/announcing-tortuga-22-ninepatch/\r\n\r\nEither way, I am unable to get 9 patch images working on the Android side under 1.7.2, can't find any working examples...", "updateAuthor": { "name": "hwoolery", "key": "hwoolery", "displayName": "Hart Woolery", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-15T13:58:11.000+0000", "updated": "2011-08-15T13:58:11.000+0000" }, { "id": "185015", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Hart\r\n\r\nI have posted instructions to the Q&A in [this thread|http://developer.appcelerator.com/question/133224/9-patch-images---android#232432], and also intend to add this information to the apidocs.\r\n\r\nHope it helps", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-03-05T08:57:54.000+0000", "updated": "2012-03-05T08:57:54.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }