{ "id": "137886", "key": "TIMOB-17861", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-02-02T23:03:35.000+0000", "created": "2014-10-09T17:37:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "Android", "ios", "searchbar", "searchview" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-03-11T22:22:53.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" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When I was app developing on Titanium SDK 3.2.3, I was using a custom theme with the parent Theme.Holo.Light. However, after I updated to 3.4.0, we were forced to change the parent theme Theme.AppCompat.Light. Before the change, the color of the searchbar text was black, and it worked fine with the white navigation bar. Now, the color of the text is white, which is almost invisible with the current theme. There is currently no way to change this through Titanium.", "attachment": [], "flagged": false, "summary": "Android: Please add text settings (font size, family, color) to searchbar and searchview", "creator": { "name": "awu", "key": "awu", "displayName": "Alex Wu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "awu", "key": "awu", "displayName": "Alex Wu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 330, "state": "closed", "name": "2015 Sprint 03 SDK", "startDate": "2015-01-31T01:00:05.245Z", "endDate": "2015-02-14T01:00:00.000Z", "completeDate": "2015-02-16T21:01:51.914Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "337399", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "PR for color on Android SearchView: https://github.com/appcelerator/titanium_mobile/pull/6526\r\nIn my opinion this should close the ticket. I don't see the sense in modifying the font for these widgets since they are system styled and always look the same, have a single size, etc. The iOS SearchBar always has a white background so the color is not an issue.\r\nHowever in Android we must have this control due to different window/view/ActionBar backgrounds.\r\n\r\nThe PR is trivially backported to 3.4.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-12-23T09:41:51.000+0000", "updated": "2014-12-23T09:41:51.000+0000" }, { "id": "341365", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "[~ingo] can the PR please be reviewed? Very simple and we can close this ticket, no need for any iOS work or anything in Android besides text color.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2015-01-30T06:10:04.000+0000", "updated": "2015-01-30T06:10:04.000+0000" }, { "id": "341384", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hpham], if you can pull this forward into Sprint 02, great.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-30T13:42:06.000+0000", "updated": "2015-01-30T13:42:06.000+0000" }, { "id": "341737", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case: \r\n{code}\r\nvar sections = [];\r\n \r\n var fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'});\r\n var fruitDataSet = [\r\n {properties: { title: 'Apple', searchableText:' Fruits Apple', itemId:'0 0'}},\r\n {properties: { title: 'Banana', searchableText:'Fruits Banana', itemId:'0 1'}},\r\n {properties: { title: 'Cantaloupe', searchableText:'Fruits Cantaloupe', itemId:'0 2'}},\r\n {properties: { title: 'Fig', searchableText:'Fruits Fig', itemId:'0 3'}},\r\n {properties: { title: 'Guava', searchableText:'Fruits Guava', itemId:'0 4'}},\r\n {properties: { title: 'Kiwi', searchableText:'Fruits Kiwi', itemId:'0 5'}},\r\n ];\r\n fruitSection.setItems(fruitDataSet);\r\n sections.push(fruitSection);\r\n \r\n var vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables'});\r\n var vegDataSet = [\r\n {properties: { title: 'Carrots', searchableText:'Vegetables Carrots', itemId:'1 0'}},\r\n {properties: { title: 'Potatoes', searchableText:'Vegetables Potatoes', itemId:'1 1'}},\r\n {properties: { title: 'Corn', searchableText:'Vegetables Corn', itemId:'1 2'}},\r\n {properties: { title: 'Beans', searchableText:'Vegetables Beans', itemId:'1 3'}},\r\n {properties: { title: 'Tomato', searchableText:'Vegetables Tomato', itemId:'1 4'}},\r\n ];\r\n vegSection.setItems(vegDataSet);\r\n sections.push(vegSection);\r\n \r\n \r\n var fishSection = Ti.UI.createListSection({ headerTitle: 'Fish'});\r\n var fishDataSet = [\r\n {properties: { title: 'Cod', searchableText:'Fish Cod', itemId:'2 0'}},\r\n {properties: { title: 'Haddock', searchableText:'Fish Haddock', itemId:'2 1'}},\r\n {properties: { title: 'Salmon', searchableText:'Fish Salmon', itemId:'2 2'}},\r\n {properties: { title: 'Tuna', searchableText:'Fish Tuna', itemId:'2 3'}},\r\n ];\r\n fishSection.setItems(fishDataSet);\r\n sections.push(fishSection);\r\n \r\n var animalsSection = Ti.UI.createListSection({ headerTitle: 'Animals'});\r\n var animalsDataSet = [\r\n {properties: { title: 'Deer', searchableText:'Animals Deer', itemId:'3 0'}},\r\n {properties: { title: 'Dog', searchableText:'Animals Dog', itemId:'3 1'}},\r\n {properties: { title: 'Cat', searchableText:'Animals Cat', itemId:'3 2'}},\r\n {properties: { title: 'Elephant', searchableText:'Animals Elephant', itemId:'3 3'}},\r\n ];\r\n animalsSection.setItems(animalsDataSet);\r\n sections.push(animalsSection);\r\n \r\n var sv = Ti.UI.Android.createSearchView({\r\n hintText: \"Search View\",\r\n height: 150,\r\n top: 10,\r\n color: \"green\"\r\n });\r\n \r\n \r\n \r\n //The textfield must be a subview of the tableView to \r\n //calculate correct contentInsets when keyboard is visible. \r\n var listView = Ti.UI.createListView({searchView: sv, top: 250});\r\n listView.sections = sections;\r\n \r\n listView.addEventListener('itemclick', function(e){\r\n alert(\r\n \"ItemId: \" + e.itemId + \"\\n\" +\r\n \"BindId: \" + e.bindId + \"\\n\" +\r\n \"Section Index: \" + e.sectionIndex + \", Item Index: \" + e.itemIndex\r\n ); \r\n });\r\n \r\n var win = Ti.UI.createWindow();\r\n win.add(listView);\r\n win.open();\r\n{code}\r\n1. Run code, type in searchView", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-02T22:55:52.000+0000", "updated": "2015-02-02T22:55:52.000+0000" }, { "id": "341777", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "[~hpham], [~ingo] thanks :)", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2015-02-03T04:34:36.000+0000", "updated": "2015-02-03T04:34:36.000+0000" }, { "id": "345743", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed using:\r\n\r\nTitanium SDK 4.0.0.v20150311105810\r\nStudio 4.0.0.201503062102\r\nCLI 3.4.2\r\nXcode 6.2\r\nNode 0.10.36\r\n\r\nOn: Galaxy Note 2, Android 4.3\r\n\r\nSearchView is colored correctly.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-11T22:22:53.000+0000", "updated": "2015-03-11T22:22:53.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }