Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5290] Android: searchHidden not working

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2013-03-21T21:34:05.000+0000
Affected Version/sRelease 1.7.2, Release 1.8.0, Release 2.0.1
Fix Version/sn/a
ComponentsAndroid
LabelsParity, exalture
ReporterPedro Enrique
AssigneeSunila
Created2011-09-15T09:21:22.000+0000
Updated2017-03-13T17:54:26.000+0000

Description

Description:

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.

Some code:

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();

Comments

  1. Nikhil Sharma 2012-05-16

    Still bug - tested with Ti SDK 2.0.1.GA2, still an issue.
  2. Sunila 2013-03-15

    Implemented searchHidden property. May require doc change https://github.com/appcelerator/titanium_mobile/pull/3970
  3. Allen Yeung 2013-03-21

    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.
  4. Lee Morris 2017-03-13

    Closing ticket as invalid.

JSON Source