{ "id": "114767", "key": "AC-1914", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-06-11T16:15:15.000+0000", "created": "2013-05-22T16:23:19.000+0000", "labels": [ "android", "backgroundimage", "backgroundrepeat" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40: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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "\r\n\r\nI'm trying to make a view with a repeating background image on android. I've put double resolution images with the same name inside the res folders and the non retina image inside the asset folder (alloy project). But when I run my app its not using the double sized image so I see two lines of images.\r\n\r\n*Setup*\r\n\r\ndefault unit dp\r\n\r\nAndroid 4.0.2\r\n\r\nSDK 3.1.0\r\n\r\n*Images*\r\n\r\napp/assets/image.png (height: 39)\r\n\r\napp/assets/android/images/res-notlong-*-hdpi/image.png (height: 78)\r\n\r\nView\r\n{code}\r\n\"#bgview\":{\r\n backgroundImage: \"/image.png\",\r\n height: 39,\r\n backgroundRepeat: true\r\n}\r\n{code}\r\n\r\n*Result*\r\n\r\non a hdpi device (and emulator): 2 rows of my image are displayed, so its using the 39dp image and not the 78dp one.\r\n\r\nExample source code attached\r\n", "attachment": [ { "id": "38882", "filename": "appSource.zip", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-05-22T16:23:19.000+0000", "size": 5093049, "mimeType": "application/zip" } ], "flagged": false, "summary": "Andoird hdpi/retina images not used as backgroundImage with backgroundRepeat", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 3.1.0, Android 4.0.2, Emulator and Device, Fedora Linux", "comment": { "comments": [ { "id": "254121", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "still the same with SDK 3.1.1 RC1", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-05-27T20:10:19.000+0000", "updated": "2013-05-27T20:10:19.000+0000" }, { "id": "255797", "author": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is \"/image.png\" the valid url for hdpi devices? Shouldn't it be \"/images/image.png\"?\r\nEDIT: I tested your code, removing \"/app/assets/bg_green.png\" and using \"/images/bg_green.png\" in index.tss and it works.", "updateAuthor": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-06-04T13:43:31.000+0000", "updated": "2013-06-04T13:55:48.000+0000" }, { "id": "256190", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "ok, I see. thanks", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-06-05T18:05:03.000+0000", "updated": "2013-06-05T18:05:03.000+0000" }, { "id": "280951", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Invalid issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:18:19.000+0000", "updated": "2013-11-24T22:18:19.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }