{ "id": "127305", "key": "TIMOB-16564", "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": "15935", "description": "2014 Sprint 06", "name": "2014 Sprint 06", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15936", "description": "2014 Sprint 06 SDK", "name": "2014 Sprint 06 SDK", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-03-25T22:00:01.000+0000", "created": "2014-03-06T11:47:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-closed-3.3.0", "qe-testadded", "supportTeam" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "35759", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "119498", "key": "TIMOB-15099", "fields": { "summary": "Android: borderRadius does not adhere to defaultunit", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-22T20:13:53.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": "h2. Description\r\nCurrently rendering of borderRadius with units is inconsistent across Android devices. On Android no units are supported.\r\nPlease find the below sample code that renders 8 views that should be perfect circles but none are circles on Android.\r\n\r\nh2. Test Case\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle : 'Border Radius Sample',\r\n\tbackgroundColor : '#fff',\r\n\tlayout : 'vertical'\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n\tshowVerticalScrollIndicator : true,\r\n\tlayout : 'vertical',\r\n\ttop : \"25dip\",\r\n\theight : Ti.UI.FILL\r\n});\r\n\r\nwin.add(scrollView);\r\n\r\nvar view1 = Ti.UI.createView({\r\n\ttop : \"5dip\",\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE\r\n});\r\nvar label1 = Titanium.UI.createLabel({\r\n\tleft : \"40dip\",\r\n\ttext : \"50:\",\r\n\tcolor : \"black\"\r\n});\r\nvar view11 = Ti.UI.createView({\r\n\tright : \"40dip\",\r\n\twidth : \"50\",\r\n\theight : \"50\",\r\n\tborderRadius : \"25\",\r\n\tbackgroundColor : \"black\"\r\n});\r\nview1.add(label1);\r\nview1.add(view11);\r\n//---------------------------------\r\nvar view2 = Ti.UI.createView({\r\n\ttop : \"5dip\",\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE\r\n});\r\nvar label2 = Titanium.UI.createLabel({\r\n\tleft : \"40dip\",\r\n\ttext : \"50px\",\r\n\tcolor : \"black\"\r\n});\r\nvar view22 = Ti.UI.createView({\r\n\tright : \"40dip\",\r\n\twidth : \"50px\",\r\n\theight : \"50px\",\r\n\tborderRadius : \"25px\",\r\n\tbackgroundColor : \"black\"\r\n});\r\nview2.add(label2);\r\nview2.add(view22);\r\n//---------------------------------\r\nvar view3 = Ti.UI.createView({\r\n\ttop : \"5dip\",\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE\r\n});\r\nvar label3 = Titanium.UI.createLabel({\r\n\tleft : \"40dip\",\r\n\ttext : \"50dip\",\r\n\tcolor : \"black\"\r\n});\r\nvar view33 = Ti.UI.createView({\r\n\tright : \"40dip\",\r\n\twidth : \"50dip\",\r\n\theight : \"50dip\",\r\n\tborderRadius : \"25dip\",\r\n\tbackgroundColor : \"black\"\r\n});\r\nview3.add(label3);\r\nview3.add(view33);\r\n//---------------------------------\r\nvar view4 = Ti.UI.createView({\r\n\ttop : \"5dip\",\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE\r\n});\r\nvar label4 = Titanium.UI.createLabel({\r\n\tleft : \"40dip\",\r\n\ttext : \"50dp\",\r\n\tcolor : \"black\"\r\n});\r\nvar view44 = Ti.UI.createView({\r\n\tright : \"40dip\",\r\n\twidth : \"50dp\",\r\n\theight : \"50dp\",\r\n\tborderRadius : \"25dp\",\r\n\tbackgroundColor : \"black\"\r\n});\r\nview4.add(label4);\r\nview4.add(view44);\r\n//---------------------------------\r\nvar view5 = Ti.UI.createView({\r\n\ttop : \"5dip\",\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE\r\n});\r\nvar label5 = Titanium.UI.createLabel({\r\n\tleft : \"40dip\",\r\n\ttext : \"8mm\",\r\n\tcolor : \"black\"\r\n});\r\nvar view55 = Ti.UI.createView({\r\n\tright : \"40dip\",\r\n\twidth : \"8mm\",\r\n\theight : \"8mm\",\r\n\tborderRadius : \"4mm\",\r\n\tbackgroundColor : \"black\"\r\n});\r\nview5.add(label5);\r\nview5.add(view55);\r\n//---------------------------------\r\nvar view6 = Ti.UI.createView({\r\n\ttop : \"5dip\",\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE\r\n});\r\nvar label6 = Titanium.UI.createLabel({\r\n\tleft : \"40dip\",\r\n\ttext : \"1cm\",\r\n\tcolor : \"black\"\r\n});\r\nvar view66 = Ti.UI.createView({\r\n\tright : \"40dip\",\r\n\twidth : \"1cm\",\r\n\theight : \"1cm\",\r\n\tborderRadius : \"0.5cm\",\r\n\tbackgroundColor : \"black\"\r\n});\r\nview6.add(label6);\r\nview6.add(view66);\r\n//---------------------------------\r\nvar view7 = Ti.UI.createView({\r\n\ttop : \"5dip\",\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE\r\n});\r\nvar label7 = Titanium.UI.createLabel({\r\n\tleft : \"40dip\",\r\n\ttext : \"50pt\",\r\n\tcolor : \"black\"\r\n});\r\nvar view77 = Ti.UI.createView({\r\n\tright : \"40dip\",\r\n\twidth : \"50pt\",\r\n\theight : \"50pt\",\r\n\tborderRadius : \"25pt\",\r\n\tbackgroundColor : \"black\"\r\n});\r\nview7.add(label7);\r\nview7.add(view77);\r\n//---------------------------------\r\nvar view8 = Ti.UI.createView({\r\n\ttop : \"5dip\",\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE\r\n});\r\nvar label8 = Titanium.UI.createLabel({\r\n\tleft : \"40dip\",\r\n\ttext : \"0.5in\",\r\n\tcolor : \"black\"\r\n});\r\nvar view88 = Ti.UI.createView({\r\n\tright : \"40dip\",\r\n\twidth : \"0.5in\",\r\n\theight : \"0.5in\",\r\n\tborderRadius : \"0.25in\",\r\n\tbackgroundColor : \"black\"\r\n});\r\nview8.add(label8);\r\nview8.add(view88);\r\n\r\nscrollView.add(view1);\r\nscrollView.add(view2);\r\nscrollView.add(view3);\r\nscrollView.add(view4);\r\nscrollView.add(view5);\r\nscrollView.add(view6);\r\nscrollView.add(view7);\r\nscrollView.add(view8);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\nIn tiapp.xml set the following\r\n{code}\r\ndp\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: BorderRadius property not supporting all units (dp,dip, pt, px)", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android OS version: 4.4.2, 4.1.2, 4.2.1\r\nDevice : Samsung S2, Samsung S3, Nexus 5\r\nMac OSX : 10.9.1", "comment": { "comments": [ { "id": "295942", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this related or a duplicate of TIMOB-15099?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-06T16:29:20.000+0000", "updated": "2014-03-06T16:29:20.000+0000" }, { "id": "296321", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This may be a duplicate of the linked issue based on comments from [~hpham]", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-10T17:18:07.000+0000", "updated": "2014-03-10T17:18:07.000+0000" }, { "id": "296626", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Yes, the fix for TIMOB-15099 should also fix this issue", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-11T17:36:35.000+0000", "updated": "2014-03-11T17:36:35.000+0000" }, { "id": "302070", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested the above code and verified the fix with:\r\nTitanium SDK, build 3.3.0.v20140418162516\r\nNode.JS Version: v0.10.13\r\nNPM Version: 1.3.2\r\n├── acs@1.0.14\r\n├── alloy@1.3.1\r\n├── node-appc@0.2.0\r\n├── npm@1.3.2\r\n├── titanium@3.3.0-dev\r\n└── titanium-code-processor@1.1.1-beta1\r\nnpm -g ls titanium: /usr/local/lib\r\n└── titanium@3.3.0-dev (git://github.com/appcelerator/titanium.git#93414d143051df4578b7aa42670008e5ef02c422)\r\nXCode Version: 5.1.1\r\nDevice:\r\nGalaxy Nexus 4 Android version 4.4\r\n\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-22T19:23:23.000+0000", "updated": "2014-04-22T19:23:44.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }