[TIMOB-3189] Android: TableView editing does not work
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Trivial |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T03:39:05.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | Android |
Labels | android, feature, klist, reported-1.5.1, reported-1.6.0, rplist |
Reporter | Jon Alter |
Assignee | Don Thorp |
Created | 2011-04-15T03:39:04.000+0000 |
Updated | 2017-03-02T19:30:21.000+0000 |
Description
For Android tableview.editing = true; does not put the table
view into editing mode as it does in iOS.
Tested with TiSDK 1.5.1, 1.6.0RC1, Android SDK 2.2
var win = Titanium.UI.createWindow({
backgroundColor:'#000'
});
var data1 = [];
for(var v=0; v<=4; v++) {
var row = Ti.UI.createTableViewRow({
title:'Section 1 row '+v,
className:'sectionrow'
});
data1.push(row);
}
var tableview = Ti.UI.createTableView({
top: 0,
height: 500,
data:data1
});
var button = Ti.UI.createButton({
title: 'edit',
height: 40,
width: 200,
bottom: 20
});
button.addEventListener('click', function(e) {
if (tableview.editing === true){
tableview.editing = false;
}else{
tableview.editing = true;
}
});
win.add(tableview);
win.add(button);
win.open();
Associated Helpdesk Ticket
http://developer.appcelerator.com/helpdesk/view/74531">http://developer.appcelerator.com/helpdesk/view/74531
"editable" and "separatorStyle" are also not implemented in Android
Associated Helpdesk Ticket
http://developer.appcelerator.com/helpdesk/view/76609">http://developer.appcelerator.com/helpdesk/view/76609
This is an iOS user experience and not common to Android or Blackberry UIs. It might get added, but it's non-trivial and forces a foreign experience on Android and Blackberry users.
Moving to invalid.
Agreed that this is a foreign concept to Android.
Closed as invalid.