{ "id": "108939", "key": "TIMOB-13367", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15396", "description": "2013 Sprint 07 Core", "name": "2013 Sprint 07 Core", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-07T19:44:56.000+0000", "created": "2013-01-31T08:39:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "borderRadius", "module_views", "qe-testadded", "triage", "view" ], "versions": [], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-06-26T21:52:20.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": "*Problem*\r\nborderRadius not working in android versions 2.4 and below. \r\nborderRadius also not working when Force GPU Rendeing is turned on.\r\n \r\nI have the below code running using in device using Android 2.2 but the border radius is not showing. i also attached the build log file:\r\n\r\n*Steps to Reproduce*\r\n1. copy and past provided code in app.js\r\n2. if testing on android device with OS > 2.4, go to dev options and turn on \"Force GPU Rendering\"\r\n3. Run the code\r\n4. notice borderRadius is not enforced.\r\n5. if on android OS version 2.4 or below, the option should not be available but should show the bug regardless\r\n\r\n\r\n*Test Code to Reproduce*\r\n{code}\r\nvar mainWindow = Ti.UI.createWindow({\r\n\ttitle : 'Lab',\r\n\tbackgroundColor : 'white',\r\n\tfullscreen : false,\r\n\tnavBarHidden : true,\r\n\texitOnClose : true,\r\n\torientationModes : [Titanium.UI.PORTRAIT]\r\n});\r\nvar portletView = Ti.UI.createView({\r\n\twidth : 200,\r\n\theight : 220,\r\n\tborderRadius : 20,\r\n\tborderWidth : 1,\r\n\tbackgroundColor : '#b2b2b2',\r\n\tzIndex : 1,\r\n\tleft : 100,\r\n\ttop : 100\r\n});\r\n\r\nmainWindow.add(portletView);\r\nmainWindow.open();\r\n{code}", "attachment": [ { "id": "35926", "filename": "berderRadius_visible.png", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-05T20:58:28.000+0000", "size": 851357, "mimeType": "image/png" }, { "id": "35223", "filename": "build.log", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-01-31T08:39:04.000+0000", "size": 14487, "mimeType": "text/plain" }, { "id": "35222", "filename": "Screenshot_2013-01-31-10-28-17.png", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-01-31T08:39:04.000+0000", "size": 11878, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: View borderRadius not working", "creator": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Application type: mobile, Titanium SDK: 3.0, Platform & version: Android 4.0.4, Device: Xperia P\r\n\r\n3.0.2GA\r\nAndroid 4.1.2", "comment": { "comments": [ { "id": "237028", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "see discussion thread here http://developer.appcelerator.com/question/144371/borderradius-not-working-on-android-versions--400 ", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-02-04T10:05:53.000+0000", "updated": "2013-02-04T10:05:53.000+0000" }, { "id": "238389", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello,\n\nJust to clarify, which Android OS versions are you experiencing this problem on? In the environment section you posted Android 4.0.4 but in the description you said 2.2. Is the problem happening on both platforms or just one? Can you test to see if this problem is happening on any other OS versions? The more information we can gather, the better.\n\nBTW, Just tested the code on a Galaxy SIII and the borderRadius is working as expected.\n\nRegards,\n\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-13T20:17:54.000+0000", "updated": "2013-02-13T20:17:54.000+0000" }, { "id": "238521", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "my device uses Android 4.0.4 and i compiled the code against Android API level 12 (3.1). \r\n\r\n{code}\r\n\r\n 12\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nin the studio application installer i selected \"google APIs Android 3.1 [armeabli]\"", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-14T07:42:54.000+0000", "updated": "2013-03-05T20:25:48.000+0000" }, { "id": "239324", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sameeh,\n\nJust curious, why use api lvl 12 when the minSdkVersion for 4.0.3, 4.0.4, and 4.0.5 is 15?\n\nhttp://developer.android.com/about/versions/android-4.0.3.html\n\nRegards,\n\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-21T22:07:31.000+0000", "updated": "2013-02-21T22:07:31.000+0000" }, { "id": "239360", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "because i want to develop,compile, and test in an environment that supports Android 3.1 as minimum version not just 4.0.x so the app is available for different platforms", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-02-22T05:36:44.000+0000", "updated": "2013-02-22T05:36:44.000+0000" }, { "id": "239708", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Sameeh, \n\nJust a few more things before I move to Ti-Mobile. I have tested on my device (Galaxy 4.1.1) and even when editing the tiapp.xml to include the lines you posted in a previous comment, I could not reproduce. Could you do me a favor and change the android tag contents in tiapp.xml to its default value of:\n\n{code}\n\n{code}\n\nand let me know if the bug still persists. Also can you confirm any other platforms that this is breaking on? Have you tested on another device and seen the same problem? Thank you for your patience as I continue to gather information and test cases on other devices.\n\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T20:34:56.000+0000", "updated": "2013-02-25T20:34:56.000+0000" }, { "id": "240695", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "i retested using the above settings with SDK 3.0.2.GA. the problem still occurs in android but works great on iOS.\nnote that in the \"Titanium Android Application Installer\" i am selecting \"Google APIs Android 3.1 armeabi]\" and even if i select \"Google APIs Android 2.2 armeabi]\" i still dont get my rounded corners. do you think there is kind of a caching problem??", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-03-05T11:29:03.000+0000", "updated": "2013-03-05T11:29:03.000+0000" }, { "id": "240699", "author": { "name": "ivan.we", "key": "ivan.we", "displayName": "Ivan Wee", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "borderRadius is not working in buttons too, i think the problem is with \"android:hardwareAccelerated\" option, which is enabled by default when using . ", "updateAuthor": { "name": "ivan.we", "key": "ivan.we", "displayName": "Ivan Wee", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-03-05T12:58:59.000+0000", "updated": "2013-03-05T12:58:59.000+0000" }, { "id": "240704", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "yes same for buttons", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-03-05T13:57:31.000+0000", "updated": "2013-03-05T13:57:31.000+0000" }, { "id": "240707", "author": { "name": "ivan.we", "key": "ivan.we", "displayName": "Ivan Wee", "active": true, "timeZone": "America/Sao_Paulo" }, "body": " in my tiapp.xml,\r\n{code:xml} \r\n\r\n 15\r\n \r\n \r\n Commenting this line\r\n \r\n\r\n{code} \r\nAND with \"Developer options -> Force gpu rendering\" disabled on the device, makes the borderRadius work.\r\nThe problem is the huge speed drop.", "updateAuthor": { "name": "ivan.we", "key": "ivan.we", "displayName": "Ivan Wee", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-03-05T14:51:14.000+0000", "updated": "2013-03-05T14:55:36.000+0000" }, { "id": "240712", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "yess same here, i just tested it with Force gpu rendering off and it worked. \nnow should we wait for an SDK release to fix this??", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-03-05T15:12:17.000+0000", "updated": "2013-03-05T15:12:17.000+0000" }, { "id": "240773", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested using provided code in description on Android emulator run configurations: \r\n\r\nTitanium Android Application Installer: Google APIs Android 3.1 [armeabi]\r\nTitanium Android Emulator: Android 3.1 [armeabi]\r\n\r\non Ti SDK 3.0.2GA\r\n\r\nWith tiapp.xml android tag: \r\n{code}\r\n\r\n 12\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nand could not reproduce bug. I still have rounded corners. See picture attached. Please provide any and all information that may be missing here. Are these the steps you are using to reproduce this bug? If not, please provide a clear and detailed list of steps to reproduce (add to description) so that we may see the problem. Thank you. ", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-05T20:56:23.000+0000", "updated": "2013-03-05T20:57:00.000+0000" }, { "id": "240790", "author": { "name": "ivan.we", "key": "ivan.we", "displayName": "Ivan Wee", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "I tested on galaxy tab 2 android 4.1.1 and it works, however in my Xoom 2 Android 4.0.4 its not working, is not showing rounded corners with \"force gpu rendering\" enabled. Sameeh Harfoush also related the same problem on Xperia P Android 4.0.4\r\n\r\nit works fine in the emulator here, so this problem may be related to hardware acceleration in Android 4.0.4.", "updateAuthor": { "name": "ivan.we", "key": "ivan.we", "displayName": "Ivan Wee", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-03-05T21:22:01.000+0000", "updated": "2013-03-05T23:43:34.000+0000" }, { "id": "241582", "author": { "name": "aodev", "key": "aodev", "displayName": "Kevin Purnelle", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hello, I just faced this problem today.\n\nHere are my tests:\n\nContext:\n\nDevice: HTC Sensation\nOS: Android 4.0.3\nTitanium SDK: 3.0.2.GA\n\n(Implemented with Alloy)\n\n\nTest #1:\n---------\nAndroid SDK: 2.3.3\nForce GPU : enabled\nResult: borderRadius does not work\n\n\nTest #2:\n---------\nAndroid SDK: 2.3.3\nForce GPU : disabled\nResult: borderRadius works\n\n\nTest #3:\n---------\nAndroid SDK: 4.0.3\nForce GPU : enabled\nResult: borderRadius does not work\n\n\nTest #4:\n---------\nAndroid SDK: 4.0.3\nForce GPU : disabled\nResult: borderRadius works\n\nSo it seems to be a problem with the GPU rendering and does not seem to depend on Android SDK version.", "updateAuthor": { "name": "aodev", "key": "aodev", "displayName": "Kevin Purnelle", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-11T16:28:59.000+0000", "updated": "2013-03-11T16:28:59.000+0000" }, { "id": "245421", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "any idea if the fix will be available in Release 3.1.0 ?", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-04-03T11:34:08.000+0000", "updated": "2013-04-03T11:34:08.000+0000" }, { "id": "245758", "author": { "name": "aodev", "key": "aodev", "displayName": "Kevin Purnelle", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just want to clarify a thing, this problem occurs when:\r\n\r\n1. the force gpu option of developer tools menu has been turned on.\r\n2. the hardware acceleration was activated in the manifest at application level with: \r\n\r\nI have not tried at activity level.\r\n\r\n", "updateAuthor": { "name": "aodev", "key": "aodev", "displayName": "Kevin Purnelle", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-04T18:26:20.000+0000", "updated": "2013-04-04T18:26:20.000+0000" }, { "id": "246313", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This might have been fixed by the fix for TIMOB-12500", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-07T16:37:19.000+0000", "updated": "2013-04-07T16:37:19.000+0000" }, { "id": "246327", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed that this has been fixed in 3.1.0. I tested on Droid Razr MAXX HD with Force GPU rendering on/off.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-07T19:44:56.000+0000", "updated": "2013-04-07T19:44:56.000+0000" }, { "id": "258511", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.2.v20130617140100\r\nAppcelerator Studio: 3.1.1.201306131423\r\nOS: OSX 10.7.5\r\nDevice:Google nexus(v 4.0.4)\r\nXcode: 4.6\r\nalloy: 1.1.3-cr\r\nacs: 1.0.2\r\nnpm: 1.2.14\r\ntitanium: 3.1.1-cr\r\ntitanium-code-processor: 1.0.1-cr5\r\n\r\nView borderRadius works fine.", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-19T08:52:25.000+0000", "updated": "2013-06-19T08:52:25.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }