{ "id": "140007", "key": "TIMOB-18054", "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": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-22T15:34:58.000+0000", "created": "2014-11-19T00:30:59.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupportTriage", "android", "qe-5.4.0", "tss" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" } ], "issuelinks": [ { "id": "43069", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "135375", "key": "TIMOB-18053", "fields": { "summary": "Android: expose the text color for the picker", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "51465", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "135375", "key": "TIMOB-18053", "fields": { "summary": "Android: expose the text color for the picker", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-06-10T21:57:43.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\nI'm not able to set the text color of the picker value. Therefore, I have to use the Android theme files to set it, but this should be exposed in the API as the default `color: '#hex'` \r\n\r\nWe have tested this issue. But Android, iOS have not text color property of pickerView or pickerRow.\r\n\r\nh4. Steps to Reproduce:\r\n1. Create classic project.\r\n3. Paste this code in app.js file.\r\n3. Run this code with the testing environment.\r\n4. {code}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose : true,\r\n layout : 'vertical'\r\n});\r\n \r\nvar picker = Ti.UI.createPicker({\r\n top : 50\r\n});\r\n \r\nvar data = [];\r\ndata[0] = Ti.UI.createPickerRow({\r\n title : 'Bananas',\r\n color:'red'\r\n});\r\ndata[1] = Ti.UI.createPickerRow({\r\n title : 'Strawberries'\r\n});\r\ndata[2] = Ti.UI.createPickerRow({\r\n title : 'Mangos'\r\n});\r\ndata[3] = Ti.UI.createPickerRow({\r\n title : 'Grapes'\r\n});\r\n \r\npicker.add(data);\r\npicker.selectionIndicator = true;\r\n \r\nwin.add(picker);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: expose the text color for the picker", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android", "comment": { "comments": [ { "id": "345880", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Please do this!\r\n\r\nIt is very annoying, specially when you need more than one picker theme.", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2015-03-12T21:22:53.000+0000", "updated": "2015-03-12T21:22:53.000+0000" }, { "id": "376350", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "You can set the color by using a label that is added to a {{Ti.UI.PickerRow}}. TIMOB-8632 also makes it possible to tint time- and datetime-pickers. [~topener] can you verify?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-09T17:52:56.000+0000", "updated": "2016-02-09T17:52:56.000+0000" }, { "id": "383625", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR for iOS+Android: https://github.com/appcelerator/titanium_mobile/pull/7960\r\n\r\nUse the following app.js for testing\r\n\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose : true,\r\n layout : 'vertical'\r\n});\r\n \r\nvar picker = Ti.UI.createPicker({\r\n top : 50\r\n});\r\n\r\nvar data = [];\r\ndata[0] = Ti.UI.createPickerRow({\r\n title : 'Red',\r\n color:'red'\r\n});\r\ndata[1] = Ti.UI.createPickerRow({\r\n title : 'Green',\r\n color:'green'\r\n});\r\ndata[2] = Ti.UI.createPickerRow({\r\n title : 'Blue',\r\n color: 'blue'\r\n});\r\ndata[3] = Ti.UI.createPickerRow({\r\n title : 'Default'\r\n});\r\n \r\npicker.add(data);\r\npicker.selectionIndicator = true;\r\n \r\nwin.add(picker);\r\nwin.open(); \r\n{code}\r\n", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-22T03:50:41.000+0000", "updated": "2016-04-22T03:50:41.000+0000" }, { "id": "388107", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, text color property for the picker is now supported on iOS. The same code works correctly with Android.\r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device & iPhone 6 Plus (8.3) Device\r\nAndroid Nexus 5 (6.0.1) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160608165242\r\nAppc Studio: 4.6.0.201605201934\r\nAppc NPM: 4.2.7-2\r\nApp CLI: 5.4.0-15\r\nXcode 7.3\r\nNode v4.2.6\r\n*Closing ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-10T21:57:27.000+0000", "updated": "2016-06-10T21:57:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }