[TIMOB-6156] Android: Parity: setBackgroundColor - v8/Rhino - UI background color lost when device rotates
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-08-16T01:27:11.000+0000 |
| Affected Version/s | Release 1.7.5 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | parity, qe-and040912, tbs-2.1.0 |
| Reporter | Eric Merriman |
| Assignee | Ingo Muschenetz |
| Created | 2011-11-11T10:26:17.000+0000 |
| Updated | 2017-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
the work around for this is to simply set the background color on the window itself until this is addressed as a whole.
This is reproducible with SDK: 3.1.0.v20130404173046 verified on android galaxy nexus running android 4.1.1
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