{ "id": "148022", "key": "TIMOB-18931", "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": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2015-06-10T08:52:03.000+0000", "created": "2015-05-20T18:56:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "label", "qe-4.0.0", "shadow" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-07-14T23:45:14.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": "h5.Steps To Reproduce:\r\n1. Create an android app with the following code in the app.js:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'grey'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n color: '#900',\r\n font: {\r\n fontSize: 48\r\n },\r\n text: 'A simple label',\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n top: 30,\r\n width: 500,\r\n height: 200\r\n});\r\n\r\nvar change = Ti.UI.createButton({\r\n bottom: 10,\r\n title: \"change the shadow of the label\"\r\n});\r\n\r\nchange.addEventListener(\"click\", function() {\r\n label.shadowColor = \"blue\";\r\n label.shadowOffset = {\r\n x: 10,\r\n y: 10\r\n };\r\n});\r\n\r\nwin.add(label);\r\nwin.add(change);\r\nwin.open();\r\n{code}\r\n2. Build the app for android lollypop device.\r\n3. Click on the button \"Change the shadow of the label\".\r\n\r\nh5. Actual Results:\r\n1. The label shadow does not change. This happens only on android lollypop.\r\n\r\nh5. Expected Results:\r\n1. The label shadow should change to what's specified.\r\n", "attachment": [], "flagged": false, "summary": "Android: Label shadow color & shadow offset property not working on android lollipop", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 4.0.0.201505191725\r\nTi SDK : 4.0.0.v20150518154210\r\nCLI : 4.0.0-beta9\r\nAlloy : 1.6.0-beta4\r\nMAC Yosemite : 10.10.3\r\nAppc npm : 4.0.0-rc\r\nAppc CLI : 4.0.0-rc\r\nNode: v0.10.37\r\nNexus 6 - Android 5.0.1", "closedSprints": [ { "id": 416, "state": "closed", "name": "2015 Sprint 12 SDK", "startDate": "2015-06-06T00:00:43.862Z", "endDate": "2015-06-20T00:00:00.000Z", "completeDate": "2015-06-23T05:41:35.834Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "354742", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~lchoudhary] I believe it's not our bug and rather how Android Lollipop's native setShadowLayer() behavior has changed. When everything else is set but shadowRadius is left empty or 0, no shadow will be shown at all on Lollipop. You need to specify it as at least a non zero value, eg 1. This seems to be a native behavior. See code below for example:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'grey'\r\n});\r\n \r\nvar label = Ti.UI.createLabel({\r\n color: '#900',\r\n font: {\r\n fontSize: 48\r\n },\r\n text: 'A simple label',\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n /*\r\n shadowRadius: 1,\r\n shadowColor: \"blue\",\r\n shadowOffset : {\r\n x: 10,\r\n y: 10},\r\n */\r\n top: 30,\r\n width: 500,\r\n height: 200\r\n});\r\n \r\nvar change = Ti.UI.createButton({\r\n bottom: 10,\r\n title: \"change the shadow of the label\"\r\n});\r\n \r\nchange.addEventListener(\"click\", function() {\r\n\tlabel.shadowRadius = 1;\r\n label.shadowColor = \"blue\";\r\n label.shadowOffset = {\r\n x: 10,\r\n y: 10\r\n };\r\n});\r\n \r\nwin.add(label);\r\nwin.add(change);\r\nwin.open(); \r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-06-10T08:51:41.000+0000", "updated": "2015-06-11T03:33:16.000+0000" }, { "id": "357707", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-14T23:45:10.000+0000", "updated": "2015-07-14T23:45:10.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }