{ "id": "85704", "key": "TIMOB-7473", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-07-21T16:15:02.000+0000", "created": "2012-01-30T13:16:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "14867", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "85660", "key": "TIMOB-7459", "fields": { "summary": "iOS: Add Shadow (based on png image pattern) to a View ", "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": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-21T16:15:02.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": "h4. PROBLEM DESCRIPTION\r\nCustomer wants to get views with a smooth drop shadow. Customer wants to add a png image with a pattern, so that one will appear under the view.\r\n\r\nh4. EXTRA INFO \r\nRight now, they are using a workaround similar to this one:\r\n\r\n{code}\r\n//Create a view container \r\nvar container = Ti.UI.createView({\r\n width:200,\r\n height:200,\r\n top:10,\r\n left:10\r\n});\r\n\r\n//Create a drop shadow view\r\nvar shadow = Ti.UI.createView({\r\n width:195,\r\n height:195,\r\n right:0,\r\n bottom:0,\r\n borderRadius:5,\r\n opacity:0.5,\r\n backgroundColor:\"#787878\"\r\n});\r\ncontainer.add(shadow);\r\n//Create a view for our content\r\nvar content = Ti.UI.createView({\r\n width:195,\r\n height:195,\r\n top:0,\r\n left:0,\r\n borderRadius:5,\r\n backgroundColor:\"#cdcdcd\"\r\n});\r\ncontent.add(Ti.UI.createLabel({\r\n text:\"Here is some content\",\r\n textAlign:\"center\",\r\n color:\"#000\"\r\n}));\r\ncontainer.add(content);\r\n//Open an application window\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:\"#fff\"\r\n}); \r\nwin.add(container); \r\nwin.open();\r\n{code} \r\n\r\nInstead of adding the container and the shadow, customer wants to have a special view with where you can set the png for the shadow, and a size for it. \r\n\r\nThe goal is having something like the attachment, but with any png. ", "attachment": [], "flagged": false, "summary": "Android: Add Shadow (based on png image pattern) to a View ", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Mobile SDK 1.9CI\r\nMacOSX Lion\r\nTi Studio 1.0.7", "comment": { "comments": [ { "id": "424524", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid as the customer has a better option, thus removing the need. This is detailed here TIMOB-7459.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-21T16:15:02.000+0000", "updated": "2017-07-21T16:15:02.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }