[TIMOB-25184] Android: Tableview row title gets messed up after scrolling on android 7.0 & above
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-08-29T18:12:33.000+0000 |
Affected Version/s | Release 7.0.0, Release 6.2.0 |
Fix Version/s | Release 6.2.0 |
Components | Android |
Labels | qe-6.2.0, regression |
Reporter | Lokesh Choudhary |
Assignee | Gary Mathews |
Created | 2017-08-22T01:38:36.000+0000 |
Updated | 2017-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.
master: https://github.com/appcelerator/titanium_mobile/pull/9363
FR passed for master. PR merged. [~gmathews], Can you please provide a back port.
6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9369
FR passed for backport PR. PR merged.
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