GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-11-17T14:31:25.000+0000 |
Affected Version/s | Release 3.2.0, Release 3.2.1, Release 9.3.0 |
Fix Version/s | 2014 Sprint 07, 2014 Sprint 07 SDK, 2014 Sprint 09, 2014 Sprint 09 SDK, Release 3.3.0, Release 9.3.0 |
Components | Android |
Labels | module_tableview, qe-testadded, supportTeam |
Reporter | Mostafizur Rahman |
Assignee | Gary Mathews |
Created | 2014-02-24T13:06:46.000+0000 |
Updated | 2020-11-17T14:31:30.000+0000 |
Problem Description
Undesired tableView separatorColor is appearing in footerView .
When I use footerView for TableViews it is working as expected in below Android 4.4 versions.
But from Above Android 4.4 version we are able to see a separator line which is not required.
Testing Environment:
MAC OS X 10.8.5
Appcelerator Studio, build: 3.2.1.201402061120
Titanium SDK: 3.2.1.GA
Titanium CLI: 3.2.1
Android SDK 2.3.3, 4.2.2 and 4.4.2
Test Code
var win = Ti.UI.createWindow({
backgroundColor : 'black',
fullscreen : false,
title : 'TableView Demo'
});
var defaultFontSize = Ti.Platform.name === 'android' ? 16 : 14;
var tableData = [];
for (var i = 1; i <= 5; i++) {
var row = Ti.UI.createTableViewRow({
className : 'forumEvent', // used to improve table performance
selectedBackgroundColor : 'white',
rowIndex : i, // custom property, useful for determining the row during events
height : 110,
title : 'Test '+i
});
tableData.push(row);
}
var container = Ti.UI.createView({
height : 50,
width : Ti.UI.FILL
});
var tableView = Ti.UI.createTableView({
backgroundColor : 'white',
data : tableData,
footerView : container,
separatorColor : 'black'
});
win.add(tableView);
win.open();
Thanks
Tested the code above with 4.4 Nexus. Works fine for me. Can't reproduce it.
master PR: https://github.com/appcelerator/titanium_mobile/pull/5557 Additional test case for ListView:
PR Merged
I am able to reproduce the issue with the code provided in the description. Tested on Nexus 5 (4.4.2) and Nexus 7 (4.3) with below environment: Appc Studio: 3.2.3.201404162038 SDK build: 3.2.3.v20140417162517 and 3.3.0.v20140417173316 acs: 1.0.14 npm: 1.3.2 alloy:1.3.1 CLI: titanium@3.2.3-beta titanium-code-processor:1.1.1-beta1 Xcode: 5.1.1 Osx: Mavericks(10.9.2) Device: Nexus 7 (4.3) and Nexus 5 (4.4.2) When I tested on Nexus 7(4.3) version (by reducing the size of row to 3) it is working as expected and no separatorColor appears. But on Nexus 5(4.4.2) version I am able to see a separator line. Hence reopening the issue.
I tested against latest master with Nexus 5 (4.4) and it works fine for me for both test cases (even when I reduce the number of rows to 3 in the first test case)
Verified the fix. We do not see any undesired tableview separator color in footerview. Closing. Environment: Appc Studio : 3.2.3.201404181520 Ti SDK : 3.3.0.v20140502133323 Mac OSX : 10.8.5 Alloy : 1.3.1 CLI - 3.2.3 Samsung Galaxy S4 running android 4.2.2 Nexus 5 - android 4.4.2
[~smohammed] Due to the
title
property now utilizing the app themes primary text color. Depending on the background; the test cases may need theircolor
property setting to a contrasting color.Closing ticket it as this is an unrelated issue, will be fixed in: https://github.com/appcelerator/titanium_mobile/pull/12029