{ "id": "129912", "key": "TIMOB-16983", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2018-01-04T09:20:20.000+0000", "created": "2014-05-02T19:54:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [ { "id": "37760", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "130599", "key": "AC-808", "fields": { "summary": "Android: Images are not getting displayed in ImageView and View ", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "updated": "2018-01-04T09:20:20.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": "{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nImageView Test Case:\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n\r\n", "attachment": [ { "id": "47792", "filename": "Screenshot_2014-05-02-22-42-12.jpg", "author": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "created": "2014-05-02T19:54:45.000+0000", "size": 389127, "mimeType": "image/jpeg" }, { "id": "47793", "filename": "Screenshot_2014-05-02-22-42-37.jpg", "author": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "created": "2014-05-02T19:54:45.000+0000", "size": 38922, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: backgroundImage property does not work on a View and ImageView that is part of a tab window", "creator": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "subtasks": [], "reporter": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "environment": "Windows 7, 3.2.2.GA, Android", "closedSprints": [ { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "305458", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with Android platform. Works fine on iOS platform.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-19T06:29:56.000+0000", "updated": "2014-05-19T06:29:56.000+0000" }, { "id": "305908", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same issue exists for ImageView as well so I have added another test case in the description to show that issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-21T13:39:53.000+0000", "updated": "2014-05-21T13:39:53.000+0000" }, { "id": "306697", "author": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "body": "Are you going to fix this?\r\nDon't you think the issue is critical?\r\n\r\n*ImageView* is completely useless now. Could you suggest a workaround or something, plz?", "updateAuthor": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "created": "2014-05-28T18:09:10.000+0000", "updated": "2014-05-28T18:09:10.000+0000" }, { "id": "307105", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce the issue & I have few findings:\r\n1. I think this is an alloy issue for a classic app I don't see any issues.\r\n\r\n2. My test code for alloy:\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\nIf I do not use a frontslash before the image filename, we do not see the image as background.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201405271647\r\nTi SDK : 3.3.0.v20140528144113\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-beta\r\nCLI - 3.3.0-beta\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-30T22:41:55.000+0000", "updated": "2014-05-30T22:42:19.000+0000" }, { "id": "307496", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "From Feon:\r\n\r\nTIMOB-16983 – I don't think it's an Alloy issue. I looked at the generated code and also ported the Alloy test app to a classic Titanium app (https://github.com/feons/alloy/tree/TIMOB-16983-testapp/test/apps/testing/TIMOB-16983). Here's the output from running the classical app on Ti SDK 3.3.0 Alpha:\r\n\r\nFor Note 10.1 Android version 4.3\r\n1. Window backgroundImage shows with or without the leading slash in the image filename\r\n2. View backgroundImage doesn't show without the leading slash in the image filename\r\n3. View backgroundImage shows with the leading slash in the image filename\r\n4. ImageView backgroundImage doesn't show at all with or without the leading slash in the image filename\r\n\r\nFor iOS\r\n1. Window backgroundImage shows with or without the leading slash in the image filename\r\n2. View backgroundImage shows with or without the leading slash in the image filename\r\n3. ImageView backgroundImage doesn't show at all with or without the leading slash in the image filename\r\n\r\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-04T12:48:55.000+0000", "updated": "2014-06-04T12:49:18.000+0000" }, { "id": "307728", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the behaviour seen Feon on a classic app.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201405271647\r\nTi SDK : 3.3.0.v20140605125743\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-beta2\r\nCLI - 3.3.0-beta2\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-05T21:37:19.000+0000", "updated": "2014-06-05T21:37:19.000+0000" }, { "id": "307965", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have investigated this issue and there are two problems:\r\n\r\n1. The path for windows creation is absolute (root always at Resources/ directory) while the path for views is relative. So for the example https://github.com/feons/alloy/tree/TIMOB-16983-testapp/test/apps/testing/TIMOB-16983, since our view is created in the file that is located in ui/window, backgroundImage: 'appicon.png' essentially means 'ui/window/appicon.png'. This is why backgroundImage of view isn't showing up. Simply modify the location to '../../appicon.png' for it to work.\r\n\r\n\r\n2. backgroundImage has never worked for ImageView (I've tested back to 3.2.0.GA). After looking at the code, I suspect the problem is that ImageView has its own custom layout and controls. ", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-09T03:29:25.000+0000", "updated": "2014-07-06T20:29:56.000+0000" }, { "id": "311899", "author": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "body": "The Sprint 11 SDK ended almost a month ago.\r\nHow about to fix the bug, please?\r\nDon't you think it's a critical issue?\r\n\r\nCould you suggest a workaround at least?", "updateAuthor": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "created": "2014-07-01T20:48:48.000+0000", "updated": "2014-07-01T20:48:48.000+0000" }, { "id": "312462", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fixplease] I've added comments from one of our developers that reviewed the issue, including a suggested workaround for the first. Please review and let us know your thoughts.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-06T20:31:25.000+0000", "updated": "2014-07-06T20:31:25.000+0000" }, { "id": "315958", "author": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "body": "Hi\r\nI can confirm that the \"../../appicon.png\" trick works indeed.\r\nBut my thoughts are as usual - bugs need to be fixed. And I can't understand why it takes too long to fix such relatively simple things.", "updateAuthor": { "name": "fixplease", "key": "fixplease", "displayName": "Fix Please", "active": true, "timeZone": "Europe/Luxembourg" }, "created": "2014-07-28T13:40:31.000+0000", "updated": "2014-07-28T13:40:31.000+0000" }, { "id": "316047", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hpham] to investigate possible fixes for this in Sprint 16. Need to check parity with iOS.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-28T21:14:41.000+0000", "updated": "2014-07-28T21:14:41.000+0000" }, { "id": "432739", "author": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "body": "Closing the ticket because couldn't reproduce with the following code.\r\n\r\nSet backgroundImage code to imageView\r\n{code}backgroundImage:'pattern.jpg' {code} doesn't work on both Android and iOS. Please use {code}image:'pattern.jpg',{code} instead.\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create tab 1\r\n//\r\nvar win1 = Titanium.UI.createWindow({\r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({\r\n icon:'KS_nav_views.png',\r\n title:'Tab 1 - View',\r\n window:win1\r\n});\r\n\r\nvar view = Titanium.UI.createView({\r\n backgroundImage:'pattern.jpg',\r\n backgroundRepeat:'true'\r\n});\r\n\r\nwin1.add(view);\r\n\r\n//\r\n// create tab 2\r\n//\r\nvar win2 = Titanium.UI.createWindow({\r\n title:'Tab2 - ImageView',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({\r\n icon:'KS_nav_ui.png',\r\n title:'Tab2 - ImageView',\r\n window:win2\r\n});\r\n\r\nvar imageView = Titanium.UI.createImageView({\r\n image:'pattern.jpg',\r\n backgroundRepeat:'true'\r\n});\r\n\r\nwin2.add(imageView);\r\n\r\n//\r\n// create Tab 3\r\n//\r\n\r\nvar win3 = Titanium.UI.createWindow({\r\n title:'Tab3 - Window',\r\n backgroundImage:'pattern.jpg',\r\n backgroundRepeat:'true'\r\n});\r\nvar tab3 = Titanium.UI.createTab({\r\n icon:'KS_nav_ui.png',\r\n title:'Tab3 - Window',\r\n window:win3\r\n});\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\ntabGroup.addTab(tab3);\r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n\r\n{code}", "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2018-01-04T09:19:56.000+0000", "updated": "2018-01-04T09:19:56.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }