Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4219] Android: tableView doubletap event does not fire if you set the data with an array of objects

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-10-09T21:04:08.000+0000
Affected Version/sRelease 1.7.0, Release 1.6.2, Release 2.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsrplist
ReporterJon Alter
AssigneeKarl Rowley
Created2011-05-25T10:08:41.000+0000
Updated2017-03-23T20:23:01.000+0000

Description

tableView doubletap does not work if you set the data with an array of objects. If you create rows and add views to them, then doubletap will work Step 1: run the code below Step 2: doubletap on 'Row 1' or 'Row 2' and notice that it does not fire Step 3: doubletap on 'Row 3' and notice that doubletap fires
var win = Ti.UI.createWindow({
	backgroundColor: 'white'
});

var data = [{title:"Row 1"},{title:"Row 2"},row];

var row = Titanium.UI.createTableViewRow({height:45});
var view = Titanium.UI.createView();
var label = Ti.UI.createLabel({text:'Row 3', left: 10});
row.add(view);
view.add(label);
data.push(row);

var table = Titanium.UI.createTableView({data:data});
win.add(table);
table.addEventListener('click', function(e){
	Ti.API.info('click');
});

table.addEventListener('doubletap', function(e){
	Ti.API.info('doubletap');
});

win.open();

Associated Helpdesk Ticket

http://appc.me/c/APP-313764

Comments

  1. Junaid Younus 2012-05-15

    Tested with 2.0.1GA2, still reproducible on a Samsung Galaxy S2. On a side note, the iOS simulator doesn't seem to be able to recognize a double click on row 3.
  2. Karl Rowley 2012-10-03

    I can't reproduce this on the 3.0.X SDK, Samsung Galaxy S2 (AT&T), Android 2.3.6
  3. Karl Rowley 2012-10-09

    Cannot reproduce with 3.0.X SDK
  4. Lee Morris 2017-03-23

    Closing ticket as "Cannot Reproduce" with reference to the above comments.

JSON Source