{ "id": "152373", "key": "TIMOB-19803", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-11-19T09:04:42.000+0000", "created": "2015-10-27T12:12:36.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [ { "id": "49899", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "152372", "key": "TIMOB-19802", "fields": { "summary": "Android: CardView should use standard property names", "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": "Low", "id": "4" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "49612", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "152345", "key": "TIMOB-19798", "fields": { "summary": "CardView: contentPadding(X) and cardCornerRadius should use default unit", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-12-02T22:56:33.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": "The CardView is documented to have both {{borderRadius}} and {{cardCornerRadius}}. Both also work, be it with different result because cardCornerRadius does not use the default unit (TIMOB-19798).\r\n\r\nUnless there is a valid reason to have both (which should then be clearly documented) I suggest that we only have {{borderRadius}} for consistency within the SDK.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tlayout: 'vertical'\r\n});\r\n\r\nvar card1 = Ti.UI.Android.createCardView({\r\n\ttop: 20,\r\n\tleft: 20,\r\n\tright: 20,\r\n\tcontentPadding: 20,\r\n\r\n\tcardCornerRadius: 20\r\n});\r\n\r\ncard1.add(Ti.UI.createLabel({\r\n\ttext: 'cardCornerRadius',\r\n\tcolor: '#000'\r\n}));\r\n\r\nwin.add(card1);\r\n\r\nvar card2 = Ti.UI.Android.createCardView({\r\n\ttop: 20,\r\n\tleft: 20,\r\n\tright: 20,\r\n\tcontentPadding: 20,\r\n\r\n\tborderRadius: 20\r\n});\r\n\r\ncard2.add(Ti.UI.createLabel({\r\n\ttext: 'borderRadius',\r\n\tcolor: '#000'\r\n}));\r\n\r\nwin.add(card2);\r\n\r\nvar card3 = Ti.UI.Android.createCardView({\r\n\ttop: 20,\r\n\tleft: 20,\r\n\tright: 20,\r\n\tcontentPadding: 20,\r\n\r\n\tborderRadius: 20,\r\n\tcardCornerRadius: 20\r\n});\r\n\r\ncard3.add(Ti.UI.createLabel({\r\n\ttext: 'cardCornerRadius + borderRadius',\r\n\tcolor: '#000'\r\n}));\r\n\r\nwin.add(card3);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "57151", "filename": "android_20151027-130738.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-27T12:12:20.000+0000", "size": 61083, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: CardView should not have both borderRadius and cardCornerRadius", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.1.0.v20151026164636", "closedSprints": [ { "id": 525, "state": "closed", "name": "2015 Sprint 23 SDK", "startDate": "2015-11-07T01:30:15.519Z", "endDate": "2015-11-21T01:30:00.000Z", "completeDate": "2015-11-23T02:54:27.887Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "368603", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "That valid reason to use {{cardCornerRadius}} might be that we now follow the [original API|https://developer.android.com/reference/android/support/v7/widget/CardView.html] exactly. I think that might be better indeed, but then we should make sure that {{borderRadius}} is not there in the API reference or document the difference (use cases).", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-02T09:30:19.000+0000", "updated": "2015-11-02T09:30:19.000+0000" }, { "id": "370803", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-19T09:03:54.000+0000", "updated": "2015-11-19T09:03:54.000+0000" }, { "id": "371969", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as this is addressed through TIMOB-19802", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-02T22:56:03.000+0000", "updated": "2015-12-02T22:56:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }