Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3105] Android: Tab Window background regression

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:56.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0
ComponentsAndroid
Labelsandroid, enterprise, regression, release-1.6.0, reported-1.6.0, rplist
ReporterDawson Toth
AssigneeDon Thorp
Created2011-04-15T03:37:07.000+0000
Updated2011-04-17T02:00:56.000+0000

Description

Regression

Using the latest 1.6.0 builds, backgroundImage and backgroundColor do not work on Android in a tab's window. Windows that are not part of a tab work fine.

Sample Code

// note: toggle the comment on backgroundColor or backgroundImage to see that neither work on a tab's window
var win = Titanium.UI.createWindow({
    //backgroundColor: 'green',
    backgroundImage: 'KS_nav_ui.png'
});

// this will show hte background color and image:
//win.open();

// but this won't:
var tabGroup = Ti.UI.createTabGroup();
var tab = Titanium.UI.createTab({
    window: win
});
tabGroup.addTab(tab);
tabGroup.open();

Tested On

Tested with Titanium SDK version: 1.6.0 (02/09/11 23:02 4d4ffa0...)
BROKEN in Android Emulator 2.2
WORKS in iPhone Simulator 4.2

Associated Helpdesk Ticket

http://developer.appcelerator.com/helpdesk/view/71921">http://developer.appcelerator.com/helpdesk/view/71921

Comments

  1. Dawson Toth 2011-04-15

    I'd also like to note that the issue was NOT present in the following build, so it has been introduced in a build after this:
    Titanium SDK version: 1.6.0 (02/02/11 15:22 a02f7db...)

  2. Dawson Toth 2011-04-15

    Another customer has noticed this.

    2nd Associated Helpdesk Ticket

    http://developer.appcelerator.com/helpdesk/view/72271">http://developer.appcelerator.com/helpdesk/view/72271

  3. Marshall Culpepper 2011-04-15

    (from [3369dd72308c02ea2d223d07892390a1fc702607]) post a job to change the background color/image of a heavyweight window's activity if we're in processProperties (this apparently needs
    to happen after onCreate() is finished) [#3105 state:fixed-in-qa]
    https://github.com/appcelerator/titanium_mobile/commit/3369dd72308c02ea2d223d07892390a1fc702607"> https://github.com/appcelerator/titanium_mobile/commit/3369dd72308c...

  4. Marshall Culpepper 2011-04-15

    (from [73e58a17929ae60095422ead5782db36d769a19c]) post a job to change the background color/image of a heavyweight window's activity if we're in processProperties (this apparently needs
    to happen after onCreate() is finished) [#3105 state:fixed-in-qa]
    https://github.com/appcelerator/titanium_mobile/commit/73e58a17929ae60095422ead5782db36d769a19c"> https://github.com/appcelerator/titanium_mobile/commit/73e58a17929a...

  5. Thomas Huelbert 2011-04-15

    closing against provided content using [INFO] Titanium SDK version: 1.6.0 (02/11/11 15:10 4d6eb7a...) and sim 2.1, g1 (1.6) samsung tab (2.2.2), nexus 2 (2.3.2)

JSON Source