[TIMOB-7590] Android: TableView: Cancel button doesn't show up during entry as it does on iOS with showCancel:false
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2017-06-07T22:56:33.000+0000 |
| Affected Version/s | Release 1.8.1 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | parity |
| Reporter | Tim Poulsen |
| Assignee | Ingo Muschenetz |
| Created | 2012-02-09T11:44:20.000+0000 |
| Updated | 2017-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
| File | Date | Size |
|---|---|---|
| Screen Shot 2012-02-09 at 2.35.14 PM.png | 2012-02-09T11:44:20.000+0000 | 193587 |
Updated description
Closing ticket due to time passed.