Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10022] Android: Unwanted transparent background on lightweight window in some cases only under Honeycomb (not ICS or greater, not Gingerbread or lower)

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-05T23:14:44.000+0000
Affected Version/sRelease 3.0.0, Release 1.8.3
Fix Version/sn/a
ComponentsAndroid
Labelscore
ReporterBill Dawson
AssigneeEric Merriman
Created2012-07-18T11:44:48.000+0000
Updated2017-06-05T23:14:44.000+0000

Description

If a lightweight window has a view on it which has a backgroundColor specified, sometimes that whole window's background will become transparent and show the window below it. Sample app.js:
var win = Ti.UI.createWindow({
	exitOnClose: true,
	backgroundColor: "blue"
});

win.addEventListener("click", function() {
	var w = Ti.UI.createWindow({
		backgroundColor: "white"
	});
	w.add(Ti.UI.createLabel({
		bottom: "5dp", backgroundColor: "red",
		color: "yellow", left: "0dp", right: "0dp",
		title: "I am a label on the second window"
	}));

	w.addEventListener("click", function() {w.close();});
	w.open();
});

win.add(Ti.UI.createLabel({
	text: "I am a label on the first window"
}));

win.open();
* Run the app on 3.1 or 3.2 Honeycomb. * Tap the window to open the second window. * In the failcase, the first window will still show through (in addition to the label on the second window.) As of this time, 2.4% of Android users are using Honeycomb, and this failcase is fairly specific and easily worked around (use a heavy window). I think it's low priority.

Comments

  1. Lee Morris 2017-06-05

    Closing ticket due to time passed and lack of progress since early 2012.

JSON Source