Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25184] Android: Tableview row title gets messed up after scrolling on android 7.0 & above

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-08-29T18:12:33.000+0000
Affected Version/sRelease 7.0.0, Release 6.2.0
Fix Version/sRelease 6.2.0
ComponentsAndroid
Labelsqe-6.2.0, regression
ReporterLokesh Choudhary
AssigneeGary Mathews
Created2017-08-22T01:38:36.000+0000
Updated2017-08-29T21:16:24.000+0000

Description

*This is a regression. Not seen with SDK 6.1.2.GA.*

Steps to reproduce:

1. Create an android app. 2. Use the code below in the app.js:
var win = Ti.UI.createWindow(),  
    section = Ti.UI.createTableViewSection(),
    table = Ti.UI.createTableView({
    	top: 10,
    	height: Ti.UI.FILL,
    	Width: Ti.UI.FILL,
	  	data: [section]
	});

createRows();
	
function createRows(){
	for(var i=0; i<=49; i++){
		var row = Ti.UI.createTableViewRow({ title: 'Open Window'+i+' - '+i});
		section.add(row);
	}
	return section;
}

table.addEventListener('click', function(e){
	alert(JSON.stringify(e.index));
});

win.add(table);
win.open();
3. Build for android 7.0 & above device/emulator. 4. After the app launches scroll the tableview.

Actual results:

1. The tableviewrow title get messed up after scrolling. 2. For the code above the you will see random title at random places as they are revealed after scrolling up & down. 3. Getting the index shows proper index for the row. Its just the title is messed up.

Expected result:

1. The tableviewrow title should not get messed up.

Comments

  1. Gary Mathews 2017-08-28

    master: https://github.com/appcelerator/titanium_mobile/pull/9363
  2. Lokesh Choudhary 2017-08-28

    FR passed for master. PR merged. [~gmathews], Can you please provide a back port.
  3. Gary Mathews 2017-08-29

    6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9369
  4. Lokesh Choudhary 2017-08-29

    FR passed for backport PR. PR merged.
  5. Lokesh Choudhary 2017-08-29

    Verified the fix in SDK 6.2.0.v20170829112035 & 7.0.0.v20170829103419. Closing. Studio Ver: 4.9.1.201707200100 OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.3 Appc NPM: 4.2.9 Appc CLI: 6.2.3 Ti CLI Ver: 5.0.14 Alloy Ver: 1.9.13 Node Ver: 6.10.1 Java Ver: 1.8.0_101 Devices: ⇨ google Nexus 5 --- Android 6.0.1 ⇨ google Pixel --- Android 7.1.1 Emulator: Android 8.0

JSON Source