Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7590] Android: TableView: Cancel button doesn't show up during entry as it does on iOS with showCancel:false

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-07T22:56:33.000+0000
Affected Version/sRelease 1.8.1
Fix Version/sn/a
ComponentsAndroid
Labelsparity
ReporterTim Poulsen
AssigneeIngo Muschenetz
Created2012-02-09T11:44:20.000+0000
Updated2017-06-07T22:56:33.000+0000

Description

Expected behavior: Cancel button will appear during typing, as happens on iOS. Actual behavior: Cancel button doesn't appear on Android, and does on iOS Perhaps this is an iOS issue that it's not supposed to be showing the cancel button during typing? With showCancel:true the button is always there on both platforms. I cannot tell from the API docs what the actual expected behavior is supposed to be. Either way, behavior doesn't match across platforms.
function makeRow() {
	// generate random string of digits and capital English letters
	// see http://en.wikipedia.org/wiki/Base_36
	return Ti.UI.createTableViewRow({
		title: Math.random().toString(36).substring(7)
	});
}
var searchbar = Ti.UI.createSearchBar({
	barColor: '#385292',
	showCancel: false
});
var tbl = Ti.UI.createTableView({
	search: searchbar
});
var data = [];
for(var i=0; i<100; i++) {
	data.push(makeRow());
}
tbl.data = data;

Attachments

FileDateSize
Screen Shot 2012-02-09 at 2.35.14 PM.png2012-02-09T11:44:20.000+0000193587

Comments

  1. Tim Poulsen 2012-02-09

    Updated description
  2. Lee Morris 2017-06-07

    Closing ticket due to time passed.

JSON Source