The "searchHidden" property of the TableView is used to hide the TableView's SearchBar (if it has one) according to the documentation. This seems to be true only for iOS and does nothing for Android. A customer is asking for this to be implemented.
var win = Titanium.UI.createWindow({});
var x = 1;
var tableView = Ti.UI.createTableView({
data:[
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
{title:'Row #'+x++},
],
search:Ti.UI.createSearchBar(),
searchHidden:true
});
win.add(tableView);
win.open();
Still bug - tested with Ti SDK 2.0.1.GA2, still an issue.
Implemented searchHidden property. May require doc change https://github.com/appcelerator/titanium_mobile/pull/3970
We will not implement this in android, since the new implementation would not match iOS behavior. This seems like an iOS native behavior and it doesn't make sense for us to match it on android.
Closing ticket as invalid.