Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1166] Android: Window Creation Issue with backgroundColor and barColor

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2012-07-26T23:55:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, defect
ReporterDon Thorp
AssigneeNeeraj Gupta
Created2011-04-15T02:45:39.000+0000
Updated2012-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'

});

Comments

  1. Marshall Culpepper 2011-04-15

    We should check if this is still the case

  2. Ping Wang 2012-07-25

    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.

JSON Source