Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7739] Android: SearchBar barColor, prompt, backgroundImage, properties ignored

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-10-18T20:57:24.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 21, 2013 Sprint 21 API, Release 3.2.0
ComponentsAndroid
Labelsmodule_searchbar, parity, qe-manualtest
ReporterArthur Evans
AssigneeBiju pm
Created2012-02-21T15:53:16.000+0000
Updated2014-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.

Comments

  1. Shameer Jan 2013-03-06

    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
  2. Biju pm 2013-06-24

    Add properties https://github.com/appcelerator/titanium_mobile/pull/4409
  3. Biju pm 2013-08-08

    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();
  4. Biju pm 2013-09-11

    NEW PR:- https://github.com/appcelerator/titanium_mobile/pull/4675
  5. Hieu Pham 2013-10-18

    CR + FR
  6. Lokesh Choudhary 2013-10-23

    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

JSON Source