{ "id": "116683", "key": "AC-1949", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2013-07-03T17:56:31.000+0000", "created": "2013-07-01T06:42:01.000+0000", "labels": [ "Android", "borderRadius" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:52.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "To make a View Circular, the code on would look like this.\r\n{code:xml}\r\n\r\n{code}\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : '#FFF'\r\n});\r\n\r\nvar myView = Ti.UI.createView({\r\n\tborderRadius : 10,\r\n\twidth : 20,\r\n\theight : 20,\r\n\tbackgroundColor : \"red\"\r\n});\r\nwin.add(myView);\r\n\r\nwin.open();\r\n{code}\r\nThis works on fine iOS, but on Android the view is drawn as a square with rounded corners. See the attached pictures\r\nTo make the view Circular on Android, borderRadius can be set to the same as the width/height. But this seems the be a dirty hack.\r\n\r\n", "attachment": [ { "id": "40418", "filename": "android.png", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2013-07-01T06:42:01.000+0000", "size": 3533, "mimeType": "image/png" }, { "id": "40509", "filename": "borderradius-android412.png", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-03T17:52:48.000+0000", "size": 13848, "mimeType": "image/png" }, { "id": "40417", "filename": "ios.png", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2013-07-01T06:42:01.000+0000", "size": 3523, "mimeType": "image/png" } ], "flagged": false, "summary": "borderRadius on Android Views is not shown correct", "creator": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "subtasks": [], "reporter": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "environment": "Android", "comment": { "comments": [ { "id": "260777", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce this.. Tested on Samsung Galaxy S2 2.3.6, Android x86 emulator 4.1.2, with anyDensity set to both false and true with Ti SDK 3.1.1 GA.\r\n\r\nSee my attachment for what I see.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-03T17:56:31.000+0000", "updated": "2013-07-03T17:56:31.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }