{ "id": "98930", "key": "TIMOB-10368", "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": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-02-26T23:54:35.000+0000", "created": "2012-08-09T07:40:07.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "56276", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "170990", "key": "TIMOB-25730", "fields": { "summary": "Android: Allow SearchBar \"color\" and \"hintTextColor\" properties to be set dynamically", "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": "Low", "id": "4" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-11-06T13:44:44.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "h2. Feature description\r\nThe Titanium.UI.SearchBar object does not allow to change the font color for the text, nor for the hintText. This should be implemented as a new feature on iOS and Android.", "attachment": [], "flagged": false, "summary": "iOS: Implement support for custom color/hintTextColor in SearchBar", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1000, "state": "closed", "name": "2018 Sprint 04 SDK", "startDate": "2018-02-12T04:23:01.913Z", "endDate": "2018-02-26T04:23:00.000Z", "completeDate": "2018-02-26T19:36:01.769Z", "originBoardId": 114 }, { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "215946", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is highly unlikely this will be implemented anytime soon. Apple provides [no way to adjust the hint text|https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UISearchBar_Class/Reference/Reference.html], and the [text color property|https://developer.apple.com/library/ios/#documentation/UIKit/Reference/NSString_UIKit_Additions/Reference/Reference.html#//apple_ref/doc/uid/TP40006893] is only available in iOS 5 or later.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T18:24:37.000+0000", "updated": "2012-08-23T18:24:37.000+0000" }, { "id": "215947", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marking as hold as half the feature can not be implemented (no native means) and the other half would not work on iOS 4.X.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T18:27:25.000+0000", "updated": "2012-08-23T18:27:25.000+0000" }, { "id": "223248", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "With Android 4.04 (and possibly other versions of Android 4) and SDK 2.1.3 (I haven't tested with others, but probably the same) this problem is now a real customer problem as the searchBar fontColor is now stuck on 'white' which got me some bug reports from customers who said that they typed stuff into searchBar's and it didn't show up. I confirmed this by changing the backgroundColor of my searchBar's to gray and sure enough the fontColor of the searchBar's are 'white'", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-12T09:05:19.000+0000", "updated": "2012-10-12T09:05:19.000+0000" }, { "id": "337906", "author": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I suggest reopening this issue as this feature is present on iOS 5+ and there's still no visible/documented procedure to change SearchBar text color.", "updateAuthor": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-05T21:50:10.000+0000", "updated": "2015-01-05T21:50:10.000+0000" }, { "id": "338078", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening this ticket based on last comment.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-07T00:22:36.000+0000", "updated": "2015-01-07T00:22:36.000+0000" }, { "id": "433687", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is still not natively possible in iOS (checked with iOS 11.2 and Xcode 9). There are workarounds using private API's for this, but this should not be done inside the official Titanium SDK as applications using private API's may be rejected during review.\r\n\r\n*EDIT*: I found a workaround that does not use private API's directly.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-25T19:46:49.000+0000", "updated": "2018-01-26T14:35:28.000+0000" }, { "id": "433711", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~emerriman] Here you go\r\n\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/9772\r\nPR (7_1_X): https://github.com/appcelerator/titanium_mobile/pull/9844\r\n\r\n** Test 1 (Standalone) **\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar searchBar = Ti.UI.createSearchBar({\r\n color: 'green',\r\n hintText: 'Enter value ...',\r\n hintTextColor: 'red'\r\n});\r\n\r\nwin.add(searchBar);\r\nwin.open();\r\n{code}\r\n\r\n** Test 2 (Search in ListView) **\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar searchBar = Ti.UI.createSearchBar({\r\n color: 'green',\r\n hintText: 'Enter value ...',\r\n hintTextColor: 'red'\r\n});\r\n\r\nvar list = Ti.UI.createListView({\r\n searchView: searchBar\r\n});\r\n\r\nwin.add(list);\r\nwin.open();\r\n{code}\r\n\r\n** Test 3 (Search in TableView) **\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar searchBar = Ti.UI.createSearchBar({\r\n color: 'green',\r\n hintText: 'Enter value ...',\r\n hintTextColor: 'red'\r\n});\r\n\r\nvar list = Ti.UI.createTableView({\r\n search: searchBar\r\n});\r\n\r\nwin.add(list);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-26T14:42:24.000+0000", "updated": "2018-02-16T14:42:52.000+0000" }, { "id": "434942", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Font color for searchbar text and hint text can be set without issue.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-26T23:54:35.000+0000", "updated": "2018-02-26T23:54:35.000+0000" }, { "id": "435011", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified changes are included in SDK builds: 7.1.0.v20180227113527 & 7.2.0.v20180228075644", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-28T17:10:29.000+0000", "updated": "2018-02-28T17:10:29.000+0000" }, { "id": "452490", "author": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR to fix this for iOS 13: https://github.com/appcelerator/titanium_mobile/pull/11316 as the hack no longer works.", "updateAuthor": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-06T13:44:44.000+0000", "updated": "2019-11-06T13:44:44.000+0000" } ], "maxResults": 19, "total": 19, "startAt": 0 } } }