{ "id": "154183", "key": "AC-560", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-01-11T09:34:53.000+0000", "created": "2016-01-08T14:50:46.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-01-11T09:34:53.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "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": "By default, Android buttons are have grey background, white text, round corners, a drop shadow and circular animation effect when tapped.\r\n\r\nI would expect when setting the backgroundColor, the button would retains borderRadius and active state animation.\r\n\r\nInstead, setting a backgroundColor causes the button to lose the rounded corners & active animation effect.\r\n\r\n\r\nTest case:\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n title:'Button test',\r\n backgroundColor:'#fff'\r\n});\r\nvar button = Ti.UI.createButton({\r\n //backgroundColor: \"red\", // uncomment to lose borderRadius + active effect\r\n title: \"Click me\"\r\n});\r\n\r\nwin1.add(button);\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Setting backgroundColor on a Ti.UI.Button causes it to lose default styling of border radius & active state", "creator": { "name": "shodan_uk", "key": "shodan_uk", "displayName": "Terry Morgan", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "shodan_uk", "key": "shodan_uk", "displayName": "Terry Morgan", "active": true, "timeZone": "Europe/London" }, "environment": "Ti SDK 5.1.1.GA\r\nTi CLI 5.0.5\r\nAndroid 5.1.0 on device & Genymotion\r\n", "comment": { "comments": [ { "id": "374132", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nThis is not a bug, This is a default behavior. By setting the background color of a button, you replace the background with all the nice Material effects with a solid color. Now to get rounded borders, you need to use borderRadius. This is Android defaults behavior. Here is a [link|http://stackoverflow.com/questions/26686250/material-effect-on-button-with-background-color] to the issue in native Android. Hope this helps.\r\n\r\nThanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-10T07:32:50.000+0000", "updated": "2016-01-10T07:32:50.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }