{ "id": "135892", "key": "AC-869", "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": "2014-09-19T07:32:41.000+0000", "created": "2014-08-29T08:59:17.000+0000", "labels": [ "TCSupportTriage", "android", "borderRadius", "listView" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:10.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": [], "description": "My codes as below. When i debug my codes on iOS everything is OK. Child ıtems shows left to right.\r\n\r\nBut on Android, child items not looking right. I have worked hard to find issue source. \r\n\r\nFinally when I modify borderRadius property to 0 (zero) everything is OK like iOS.\r\n\r\n{code}\r\nvar $ListViewLinksTemplate = {\r\n\tchildTemplates : [{\r\n\t\ttype : 'Ti.UI.View',\r\n\t\tproperties : {\r\n\t\t\ttop : 9,\r\n\t\t\twidth : Ti.UI.SIZE,\r\n\t\t\theight : Ti.UI.SIZE,\r\n\t\t\tbackgroundColor : \"transparent\",\r\n\t\t\tlayout : \"horizontal\",\r\n\t\t},\r\n\t\tchildTemplates : [{\r\n\t\t\ttype : 'Ti.UI.View',\r\n\t\t\tproperties : {\r\n\t\t\t\ttop : 0,\r\n\t\t\t\tleft : 0,\r\n\t\t\t\twidth : 30,\r\n\t\t\t\theight : 30,\r\n\t\t\t\tbackgroundColor : Alloy.Globals.Color2,\r\n\t\t\t\tborderRadius: 6\r\n\t\t\t},\r\n\t\t\tchildTemplates : [{\r\n\t\t\t\ttype : 'Ti.UI.ImageView',\r\n\t\t\t\tbindId : '_ImageViewIcon',\r\n\t\t\t\tproperties : {\r\n\t\t\t\t\twidth : 26,\r\n\t\t\t\t\theight : 26,\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t}, {\r\n\t\t\ttype : 'Ti.UI.View',\r\n\t\t\tbindId : '_ViewForLabels',\r\n\t\t\tproperties : {\r\n\t\t\t\tlayout : \"vertical\",\r\n\t\t\t\tleft : 5,\r\n\t\t\t\twidth : 100,\r\n\t\t\t\theight : Ti.UI.SIZE\r\n\t\t\t},\r\n\t\t\tchildTemplates : [{\r\n\t\t\t\ttype : 'Ti.UI.Label',\r\n\t\t\t\tbindId : '_LabelHeader',\r\n\t\t\t\tproperties : {\r\n\t\t\t\t\twidth : \"100%\",\r\n\t\t\t\t\theight : Ti.UI.SIZE,\r\n\t\t\t\t\ttextAlign : Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n\t\t\t\t\tcolor : Alloy.Globals.Color5,\r\n\t\t\t\t\ttext : \"\",\r\n\t\t\t\t\tfont : {\r\n\t\t\t\t\t\tfontSize : 16,\r\n\t\t\t\t\t\tfontFamily : Alloy.Globals.CustomFont\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}, {\r\n\t\t\t\ttype : 'Ti.UI.Label',\r\n\t\t\t\tbindId : '_LabelExplain',\r\n\t\t\t\tproperties : {\r\n\t\t\t\t\tbottom : 3,\r\n\t\t\t\t\twidth : \"100%\",\r\n\t\t\t\t\theight : Ti.UI.SIZE,\r\n\t\t\t\t\ttextAlign : Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n\t\t\t\t\tcolor : Alloy.Globals.Color10,\r\n\t\t\t\t\ttext : \"\",\r\n\t\t\t\t\tfont : {\r\n\t\t\t\t\t\tfontSize : 12,\r\n\t\t\t\t\t\tfontFamily : Alloy.Globals.CustomFont\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}],\r\n\t\t}, {\r\n\t\t\ttype : 'Ti.UI.ImageView',\r\n\t\t\tproperties : {\r\n\t\t\t\timage : \"images/icon-right-arrow.png\",\r\n\t\t\t\twidth : 16,\r\n\t\t\t\theight : 16\r\n\t\t\t}\r\n\t\t}],\r\n\r\n\t}],\r\n\tproperties : {\r\n\t\taccessoryType : Ti.UI.LIST_ACCESSORY_TYPE_NONE,\r\n\t\theight : Ti.UI.SIZE,\r\n\t\tbackgroundColor : \"transparent\",\r\n\t\tselectedBackgroundColor : \"transparent\",\r\n\t\tselectionStyle : Alloy.Globals.PlatformName == 'iPhone OS' ? Ti.UI.iPhone.ListViewCellSelectionStyle.NONE : \"transparent\",\r\n\t}\r\n};\r\n{code}\r\n", "attachment": [ { "id": "50859", "filename": "Snap3.png", "author": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2014-08-29T08:59:17.000+0000", "size": 144664, "mimeType": "image/png" } ], "flagged": false, "summary": "Android borderRadius property not working with using view layout = \"horizontal\"", "creator": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "environment": "Android 4.1.1 API 16, Titanium SDK 3.3.0GA, Alloy, Genymotion", "comment": { "comments": [ { "id": "321201", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nWe have tested this issue with our sample code. Its not a bug. It works as we expect. If *borderRadius* is specified as an integer then we need to set {code}dp{code} in the TiApp.xml\r\n\r\n*TESTING ENVIRONMENT:*\r\n Titanium SDK: 3.3.0.GA and 3.2.3.GA\r\n Titanium CLI: 3.3.0\r\n OS X Version: 10.9.3\r\n Android API Level: 17 and 19\r\n \r\n*STEPS TO REPRODUCE:*\r\n a) Create a simple project.\r\n b) Update this code in app.js \r\n c) Run this with testing environment\r\n \r\n*TESTING CODE:*\r\n\r\n{code}var win = Ti.UI.createWindow({\r\n backgroundColor : '#000'\r\n});\r\nvar v = Ti.UI.createView({\r\n width : 100,\r\n height : 100,\r\n borderRadius : 25,\r\n borderWidth : 3,\r\n borderColor : 'green'\r\n}); \r\nwin.add(v);\r\nwin.open();{code}\r\n\r\n*In Alloy Project* index.xml\r\n\r\n{code}\r\n\t\r\n\t\t\r\n\t\r\n{code}\r\n\r\nindex.js\r\n\r\n{code}$.index.open();{code}\r\n\r\n*TESTING RESULT:*\r\n\r\nIts working perfectly.\r\n\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-01T07:14:54.000+0000", "updated": "2014-09-19T07:32:33.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }