{ "id": "135375", "key": "TIMOB-18053", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-12-07T12:32:04.000+0000", "created": "2014-08-27T13:05:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "TCSupportTriage", "android", "tss" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" }, { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "43069", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "140007", "key": "TIMOB-18054", "fields": { "summary": "iOS: 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": "None", "id": "6" }, "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" }, "outwardIssue": { "id": "140007", "key": "TIMOB-18054", "fields": { "summary": "iOS: 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": "None", "id": "6" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-12-09T18:58:13.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": "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": [ { "id": "59691", "filename": "2016_06_30_14_17_11.mp4", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-30T21:23:48.000+0000", "size": 2950783, "mimeType": "video/mp4" } ], "flagged": false, "summary": "Android: expose the text color for the picker", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android", "closedSprints": [ { "id": 758, "state": "closed", "name": "2016 Sprint 24 SDK", "startDate": "2016-11-19T01:32:06.991Z", "endDate": "2016-12-03T01:32:00.000Z", "completeDate": "2016-12-05T01:53:38.311Z", "originBoardId": 114 }, { "id": 618, "state": "closed", "name": "2016 Sprint 08 SDK", "startDate": "2016-04-09T00:30:18.262Z", "endDate": "2016-04-23T00:30:00.000Z", "completeDate": "2016-04-25T02:38:28.511Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "328954", "author": { "name": "jpriebe", "key": "jpriebe", "displayName": "Jason Priebe", "active": true, "timeZone": "America/New_York" }, "body": "This seems to be a pretty big deal. The picker looks OK if it has a dark background color, so that it shows white text on dark, but if you have a light background color, you can't see the text of the picker at all.\r\n\r\nInterestingly, you get the underline and triangle in the corner, like a modern Android picker. But that's in black. If you set the background to black, you can see the text, but you *can't* see the underline and the triangle.\r\n\r\nFor a usable picker, we really need a lot more control over the colors of the text and the \"decorators\".", "updateAuthor": { "name": "jpriebe", "key": "jpriebe", "displayName": "Jason Priebe", "active": true, "timeZone": "America/New_York" }, "created": "2014-10-22T01:36:36.000+0000", "updated": "2014-10-22T01:36:36.000+0000" }, { "id": "345881", "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:23:04.000+0000", "updated": "2015-03-12T21:23:04.000+0000" }, { "id": "383369", "author": { "name": "chmiiller", "key": "chmiiller", "displayName": "Carlos Henrique Zinato", "active": true, "timeZone": "America/Los_Angeles" }, "body": "any news on that guys? Terrible to do a form and have to manage it on Android Themes =/", "updateAuthor": { "name": "chmiiller", "key": "chmiiller", "displayName": "Carlos Henrique Zinato", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-20T16:17:41.000+0000", "updated": "2016-04-20T16:17:41.000+0000" }, { "id": "389653", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening, as this does not work properly on android 6.0. Works as expected on android 5.1.1.\r\nUsing the code in the description on android 6.0, after you dropdown & select a row, the selected row text as well as the original row text on which the color property is set will have the color red.\r\nAttached is a video of the issue : [^2016_06_30_14_17_11.mp4]\r\n\r\nEnvironment:\r\nAppc Studio : 4.7.0.201606220541\r\nTi SDK : 5.4.0.v20160630074247\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.0\r\nMAC El Capitan : 10.11.5\r\nAppc NPM : 4.2.7-2\r\nAppc CLI : 5.4.0-23\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-30T21:23:35.000+0000", "updated": "2016-06-30T21:25:24.000+0000" }, { "id": "389876", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Clarification: Original PR for this was https://github.com/appcelerator/titanium_mobile/pull/7959", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-07-04T07:19:00.000+0000", "updated": "2016-07-11T04:12:57.000+0000" }, { "id": "389877", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Due to time constraints, will be bumping this out of 5.4.0 and placing it in -6.0.0- 6.1.0 to be addressed.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-07-04T07:19:43.000+0000", "updated": "2016-07-11T04:13:15.000+0000" }, { "id": "398736", "author": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I tested it on my Android 6 Galaxy S6 device. It was working for me. The text in the picker e.g. Bananas, Strawberries, etc do have text color.\r\n3_4_1 release does not have styleTextView which is responsible for setting text color in color picker. https://github.com/appcelerator/titanium_mobile/blob/3_4_1/android/modules/ui/src/java/ti/modules/titanium/ui/widget/picker/TiUINativePicker.java#L78\r\nThis has already been addressed and merged in master. https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/ui/src/java/ti/modules/titanium/ui/widget/picker/TiUINativePicker.java#L76", "updateAuthor": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-10-12T18:54:09.000+0000", "updated": "2016-10-12T18:56:42.000+0000" }, { "id": "402309", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening as I am still seeing the issue I have mentioned in my previous comment.\r\n\r\nAppc Studio : 4.8.1.201611291132\r\nSDK Version : 6.1.0.v20161129071600\r\nMac OS Version : 10.12\r\nXcode Version : Xcode 8.1 Build version 8B62\r\nAppc CLI AND Appc NPM : {\"NPM\":\"4.2.9-1\",\"CLI\":\"6.1.0-302\"}\r\nTi CLI : 5.0.11\r\nAlloy : 1.9.4\r\nNode : v4.6.0\r\nDevice: running 7.1Pixel", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-01T01:28:27.000+0000", "updated": "2016-12-01T01:28:27.000+0000" }, { "id": "402528", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8651", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-05T01:02:31.000+0000", "updated": "2016-12-05T01:02:31.000+0000" }, { "id": "402585", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening as now I am seeing my previous issue when {{color}} property is set on two of the row text.\r\n\r\nAppc Studio : 4.8.1.201612050850\r\nSDK Version : 6.1.0.v20161205102502\r\nMac OS Version : 10.12\r\nXcode Version : Xcode 8.1 Build version 8B62\r\nAppc CLI AND Appc NPM : {\"NPM\":\"4.2.9-1\",\"CLI\":\"6.1.0-302\"}\r\nTi CLI : 5.0.11\r\nAlloy : 1.9.4\r\nNode : v4.6.0\r\nDevice: running 7.1Pixel\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-05T22:18:31.000+0000", "updated": "2016-12-05T22:18:31.000+0000" }, { "id": "402872", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8661", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-07T12:32:19.000+0000", "updated": "2016-12-07T12:32:19.000+0000" }, { "id": "403099", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, {{color}} property is no longer set on two rows of text when selecting to text with no color then moving to another line of text. \r\n*Environment*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 6.0.0\r\nAndroid 7.0 (Google Nexus 6P)\r\nIphone 6 plus (IOS version 9.3.4)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium CLI Version: 5.0.10\r\nTitanium SDK Version: 6.1.0.v20161208114813\r\nXcode: 8.0\r\nAppcelerator Studio: 4.8.0.201611121409\r\n{code}\r\n\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-09T18:57:45.000+0000", "updated": "2016-12-09T18:57:45.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }