modes, which allow the user to delete or re-order rows respectively.
To provide parity, implement this functionality for Android.
See attached image for an example.
See [Titanium.UI.TableView](
This code may be used for testing different combinations of editing/moving and editable/moveable (inherited and explicit) properties.
Enable landscape mode to see the full text of each row.
Ti.UI.setBackgroundColor('#ddd');
var win = Ti.UI.createWindow({
title:'TableView Edit and Move Demo',
layout:'vertical'
});
var button = Ti.UI.createButton({
title:'Edit',
right: 10, top:10,
width:100, height:50
});
win.add(button);
var data = [
{title:'1. Inherit edit, Inherit move'},
{title:'2. Inherit edit, explicit move true', moveable:true},
{title:'3. Inherit edit, explicit move false', moveable:false},
{title:'4. Explicit edit true, Inherit move', editable:true},
{title:'5. Explicit edit false, Inherit move', editable:false},
{title:'6. Explicit edit true, explicit move true', editable:true, moveable:true},
{title:'7. Explicit edit true, explicit move false', editable:true, moveable:false},
{title:'8. Explicit edit false, explicit move true', editable:false, moveable:true},
{title:'9. Explicit edit false, explicit move false', editable:false, moveable:false}
];
var tableview = Ti.UI.createTableView({
backgroundColor:'white',
data:data,
editable:true,
moveable:false,
top:10
});
win.add(tableview);
var isTableModifiable = false;
button.addEventListener('click', function(e){
if(isTableModifiable){
// exit edit/move mode
e.source.title = 'Edit';
tableview.moving = false;
tableview.editing = false;
} else {
// enter edit/move mode
e.source.title = 'Cancel';
tableview.moving = true;
tableview.editing = true;
}
isTableModifiable = !isTableModifiable;
});
win.open();
Any chance this will ever be implemented ?
This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. If community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.