[TIMOB-17861] Android: Please add text settings (font size, family, color) to searchbar and searchview
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-02-02T23:03:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.0.0 |
Components | Android, iOS |
Labels | Android, ios, searchbar, searchview |
Reporter | Alex Wu |
Assignee | Ingo Muschenetz |
Created | 2014-10-09T17:37:55.000+0000 |
Updated | 2015-03-11T22:22:53.000+0000 |
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.
PR for color on Android SearchView: https://github.com/appcelerator/titanium_mobile/pull/6526 In 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. However in Android we must have this control due to different window/view/ActionBar backgrounds. The PR is trivially backported to 3.4.
[~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.
[~hpham], if you can pull this forward into Sprint 02, great.
Test case:
1. Run code, type in searchView
[~hpham], [~ingo] thanks :)
Verified fixed using: Titanium SDK 4.0.0.v20150311105810 Studio 4.0.0.201503062102 CLI 3.4.2 Xcode 6.2 Node 0.10.36 On: Galaxy Note 2, Android 4.3 SearchView is colored correctly.