[TIMOB-1166] Android: Window Creation Issue with backgroundColor and barColor
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-07-26T23:55:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, defect |
Reporter | Don Thorp |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:45:39.000+0000 |
Updated | 2012-07-26T23:55:13.000+0000 |
Description
From Helpdesk issue: http://helpdesk.appcelerator.net/tickets/3298">3298
I figured out what the problem is...
apparently in Ti for Android, the Ti.UI.createWindow Event does not
support:
backgroundColor:'#fff',
barColor:'#111'
I figured this out using this code:
// create table view event listener
tableview.addEventListener('click', function(e)
{ if (e.rowData.test)
{ var win = null;
if (Ti.Platform.name == "android") {
win = Titanium.UI.createWindow({
url:e.rowData.test,
title:e.rowData.title
}); } else { win = Titanium.UI.createWindow({
url:e.rowData.test,
title:e.rowData.title,
backgroundColor:'#fff',
barColor:'#111'
});
We should check if this is still the case
Ti.UI.createWindow supports the backgroundColor property but does not support barColor on Android. This is already specified in the doc. Mark as Cannot Reproduce.