{ "id": "83290", "key": "TIMOB-6406", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-12-01T19:25:37.000+0000", "created": "2011-12-01T11:00:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-11-27T08:35:54.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": "The backgroundFocusedColor/backgroundSelectedColor/backgroundDisabledColor properties of Titanium.UI.Tab do not work\r\nh4. Repro Steps\r\nCreate a project to run the code below.\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n height:40\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n //icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n backgroundSelectedColor:'#00f',\r\n backgroundFocusedColor:'#00f',\r\n backgroundColor:'#00f',\r\n backgroundDisabledColor:'#00f',\r\n focusable:true,\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: the backgroundFocusedColor/backgroundSelectedColor/backgroundDisabledColor properties of Titanium.UI.Tab do not work", "creator": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android Emulator2.2", "comment": { "comments": [ { "id": "174528", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The native tab control does not provide a method for handling the drawing states of the tabs themselves.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T19:25:37.000+0000", "updated": "2011-12-01T19:25:37.000+0000" }, { "id": "228608", "author": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is there anyway we can get this working in latest releases. I don't see anyway we can do it in JavaScript to bring the color for Android TabGroup.", "updateAuthor": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-27T08:35:54.000+0000", "updated": "2012-11-27T08:35:54.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }