{ "id": "127684", "key": "TIMOB-16655", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": null, "resolutiondate": null, "created": "2014-03-14T10:27:47.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "andoid", "theme", "tss" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [], "assignee": null, "updated": "2019-04-24T13:55:56.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Android don't have this basilar function.\r\nWorkaround with \"addEventListener('click'...\".\r\nIs useful function.\r\nTest with: \r\nTiSDK 3.2.1.GA", "attachment": [], "flagged": false, "summary": "Android: Add disabledColor property", "creator": { "name": "daorithos", "key": "daorithos", "displayName": "Gianpaolo", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "daorithos", "key": "daorithos", "displayName": "Gianpaolo", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "297463", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please clarify which UI control you need this property on. I am assuming it is Ti.UI.Button but want to confirm.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-17T01:35:06.000+0000", "updated": "2014-03-17T01:35:06.000+0000" }, { "id": "297505", "author": { "name": "daorithos", "key": "daorithos", "displayName": "Gianpaolo", "active": true, "timeZone": "Europe/Berlin" }, "body": "oh I'm sorry, but yes, it is Ti.UI.Button, but I think we can use in every object that has properties backgroundDisabledColor.\r\nAnd thanks for your reply", "updateAuthor": { "name": "daorithos", "key": "daorithos", "displayName": "Gianpaolo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-03-17T07:49:33.000+0000", "updated": "2014-03-17T08:08:20.000+0000" }, { "id": "297659", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This functionality already exists on Android platform with another property - backgroundDisabledColor. Please refer to TIMOB-15374 for detailed discussion on this topic.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-18T04:29:40.000+0000", "updated": "2014-03-18T04:29:40.000+0000" }, { "id": "297679", "author": { "name": "daorithos", "key": "daorithos", "displayName": "Gianpaolo", "active": true, "timeZone": "Europe/Berlin" }, "body": "Wait, I'm not referring to the property backgroundDisabledColor, this change the background color of the object. i talk about the Color property, the Color property change the text content color of object. \nwhen i write this:\n\nvar enabled = z;\nvar x = Ti.UI.createButton({\n backgroundColor:\"red\", \n color:\"brown\", \n backgroundDisabledColor:\"#000\",\n disabledColor:\"#777\",\n enabled:enabled\n})\n\nI expect that when the button is disabled it has a black background and gray text.\nWhen it is active has a red background and brown text.\n\nsorry for my bad English.", "updateAuthor": { "name": "daorithos", "key": "daorithos", "displayName": "Gianpaolo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-03-18T08:06:27.000+0000", "updated": "2014-03-18T08:06:27.000+0000" }, { "id": "298183", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this feature request to engineering for further evaluation. Adding this property would bring the behavior at par with iOS platform. Another property that is not available for Android platform is selectedColor. \r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n fullscreen:true,\r\n backgroundColor:'white',\r\n});\r\n\r\nvar container = Ti.UI.createView({\r\n height:Ti.UI.SIZE,\r\n layout:'vertical'\r\n});\r\n\r\nwin.add(container);\r\n\r\nvar isenabled = true;\r\nvar b1 = Ti.UI.createButton({\r\n title:'I am enabled',\r\n backgroundImage:'red.png',\r\n backgroundSelectedImage:'green.png',\r\n backgroundDisabledImage:'green.png',\r\n color:'black',\r\n selectedColor:'white',\r\n disabledColor:'yellow',\r\n backgroundDisabledColor:'yellow',\r\n top:10,\r\n enabled:isenabled,\r\n width:200\r\n});\r\n\r\nvar b2 = Ti.UI.createButton({\r\n title:'TOGGLE ENABLED',\r\n top:10\r\n});\r\n\r\ncontainer.add(b1);\r\ncontainer.add(b2);\r\n\r\nb2.addEventListener('click',function(e){\r\n if (isenabled == true) {\r\n b1.enabled = false;\r\n b1.title = 'I AM DISABLED';\r\n } else {\r\n b1.enabled = true;\r\n b1.title = 'I AM ENABLED';\r\n };\r\n isenabled = !isenabled;\r\n});\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-21T02:06:38.000+0000", "updated": "2014-03-21T02:06:38.000+0000" }, { "id": "447930", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think this one is a must have for parity. ", "updateAuthor": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-24T13:55:56.000+0000", "updated": "2019-04-24T13:55:56.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }