Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6156] Android: Parity: setBackgroundColor - v8/Rhino - UI background color lost when device rotates

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2017-08-16T01:27:11.000+0000
Affected Version/sRelease 1.7.5
Fix Version/sn/a
ComponentsAndroid
Labelsparity, qe-and040912, tbs-2.1.0
ReporterEric Merriman
AssigneeIngo Muschenetz
Created2011-11-11T10:26:17.000+0000
Updated2017-08-16T01:27:11.000+0000

Description

Description: Setting a background of white with Ti.UI.setBackgroundColor works as expected until you rotate the device. At that point, the color is gone, and the splash screen is visible. Sample code:
Titanium.UI.setBackgroundColor('#fff');

var win = Ti.UI.createWindow({
});

var label = Ti.UI.createLabel({
	text:"Hello, rotate me"
})

win.add(label);
win.open();
Steps to reproduce: 1) create app with sample code above 2) install to android device 3) note white color with label 4) Rotate device Result: White background is gone, splash screen visible Expected: White background persists through rotations

Comments

  1. Opie Cyrus 2011-11-28

    the work around for this is to simply set the background color on the window itself until this is addressed as a whole.
  2. Lokesh Choudhary 2013-04-06

    This is reproducible with SDK: 3.1.0.v20130404173046 verified on android galaxy nexus running android 4.1.1
  3. Lee Morris 2017-08-16

    This is no longer occurring with the following environment; Studio 4.9.1.201707200100 Ti SDK 6.1.2 GA Appc CLI 6.2.3 Ti CLI 5.0.14 Alloy 1.9.13 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source