{ "id": "173904", "key": "TIMOB-27258", "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": null, "resolutiondate": null, "created": "2019-07-19T13:43:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" }, { "id": "20845", "name": "Release 8.1.1", "archived": false, "released": true, "releaseDate": "2019-08-29" } ], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2019-09-16T14:15:42.000+0000", "status": { "description": "Submitted for code review", "name": "In Review", "id": "10003", "statusCategory": { "id": 4, "key": "indeterminate", "colorName": "yellow", "name": "In Progress" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Our CI highly relies on card-views to create well-shaped rounded views with a background gradient. Unfortunately, this does not work on Android:\r\n{code:js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar cardView = Ti.UI.Android.createCardView({\r\n width: 200,\r\n height: 200,\r\n backgroundGradient: {\r\n type: 'linear',\r\n colors: ['#6AECD5', '#50DBB8'],\r\n startPoint: { x: '50%', y: 0 },\r\n endPoint: { x: '50%', y: '100%' },\r\n backFillStart: false\r\n }\r\n});\r\n\r\nwin.add(cardView);\r\nwin.open();\r\n{code}\r\n\r\nIt works fine on iOS and other views like Ti.UI.View or Ti.UI.Button, but those cannot be used because of the rounded / shadowed combination.", "attachment": [], "flagged": false, "summary": "Android: Background Gradient does not work on Ti.UI.Android.CardView", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "451269", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is there progress or at least a workaround regarding this issue?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-10T17:57:50.000+0000", "updated": "2019-09-10T17:58:39.000+0000" }, { "id": "451398", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/11219", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2019-09-16T14:15:42.000+0000", "updated": "2019-09-16T14:15:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }