[TIMOB-7739] Android: SearchBar barColor, prompt, backgroundImage, properties ignored
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-10-18T20:57:24.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 21, 2013 Sprint 21 API, Release 3.2.0 |
Components | Android |
Labels | module_searchbar, parity, qe-manualtest |
Reporter | Arthur Evans |
Assignee | Biju pm |
Created | 2012-02-21T15:53:16.000+0000 |
Updated | 2014-08-08T18:16:26.000+0000 |
Description
When creating a search bar, if you specify the 'barColor', 'prompt', or 'backgroundImage' properties, they appear to be ignored.
The problem reproduces with release 3.0.2 and master release 3.1.0 tested on Titanium Studio, build: 3.0.2.201302191606 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2
Add properties https://github.com/appcelerator/titanium_mobile/pull/4409
Test case for setting barColor and prompt: ________________________________________________ var win = Ti.UI.createWindow({ title:'searchbar with barcolor', backgroundColor:'#fff' }); var searchbar = Ti.UI.createSearchBar({ top : 0, showCancel: true, barColor:'#00f', prompt : 'prompt text', height : 100, hintText: "This is the hint text", }); var btn = Ti.UI.createButton({ top : 200 , left : 10 , title : 'click to set image', height : 100, }); btn.addEventListener('click', function() { searchbar.backgroundImage = 'KS_nav_ui.png'; }); win.add(searchbar); win.add(btn); win.open(); Test case for setting backgroundImage and prompt: ________________________________________________ var win = Ti.UI.createWindow({ title:'searchbar with backgroundImage', backgroundColor:'#fff' }); var searchbar = Ti.UI.createSearchBar({ top : 0, showCancel: true, backgroundImage : 'KS_nav_ui.png', prompt : 'prompt text', height : 100, hintText: "This is the hint text", }); win.add(searchbar); win.open();
NEW PR:- https://github.com/appcelerator/titanium_mobile/pull/4675
CR + FR
Verified the fix. The mentioned properties are respected. Thus closing. Environment: Appcel Studio : 3.2.0.201310230601 Ti SDK : 3.2.0.v20131022171645 Mac OSX : 10.8.5 CLI - 3.2.0 with hash 72f7426b4ee6c2d2883c666d5b7e03906a16012f Android emulator 4.0.4