Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3189] Android: TableView editing does not work

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T03:39:05.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsAndroid
Labelsandroid, feature, klist, reported-1.5.1, reported-1.6.0, rplist
ReporterJon Alter
AssigneeDon Thorp
Created2011-04-15T03:39:04.000+0000
Updated2017-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

Comments

  1. Jon Alter 2011-04-15

    "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

  2. Don Thorp 2011-04-15

    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.

  3. Don Thorp 2011-04-15

    Moving to invalid.

  4. Ralf Pfeiffer 2011-04-15

    Agreed that this is a foreign concept to Android.

  5. Lee Morris 2017-03-02

    Closed as invalid.

JSON Source