{ "id": "83629", "key": "TIMOB-6586", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-21T13:35:13.000+0000", "created": "2011-12-12T16:25:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity", "qe-port" ], "versions": [], "issuelinks": [ { "id": "14154", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "77849", "key": "TIMOB-4690", "fields": { "summary": "iOS: Add support for repeating backgrounds on a view that is similar to background-repeat property in CSS", "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": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "19303", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "62075", "key": "TIMOB-1443", "fields": { "summary": "TiAPI: backgroundRepeat or similar", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "16208", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "89190", "key": "TIDOC-516", "fields": { "summary": "APIDoc: Document that Ti.UI.View.backgroundRepeat is supported on Android", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-08-15T14:55:04.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": "PROBLEM\r\nA customer wants to create titled backgrounds, so they look the same in any platform, and they don't have to generate different background images for each different platform.\r\n\r\nThere is a screenshot showing the expected behavior. Additionally, you can see an example of code that will do the same effect, using insane amount of memory:\r\n\r\n{code:title=titledapp.js|borderStyle=solid}\r\nwin = Ti.UI.createWindow();\r\n\r\nvar background = Ti.UI.createView();\r\n\r\nvar image1 = Ti.UI.createImageView({\r\n // use whatever image you have here\r\n image: 'appicon.png',\r\n height: 'auto',\r\n width: 'auto'\r\n});\r\n \r\nvar width=image1.size.width;\r\nvar height=image1.size.height;\r\n\r\nvar deviceW= Titanium.Platform.displayCaps.platformWidth;\r\nvar deviceH= Titanium.Platform.displayCaps.platformHeight;\r\n\r\nvar repeatX = (deviceW % width) + 1; \r\nvar repeatY = (deviceH % height) + 1; \r\n\r\n\r\nfor(i=0;i