Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15371] Android: Unable to overlay multiple lightweight windows

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-10-01T19:53:35.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsAndroid
Labelstriage
ReporterDawson Toth
AssigneePing Wang
Created2013-09-30T01:19:18.000+0000
Updated2017-03-17T17:56:56.000+0000

Description

Problem

On 3.1.3.GA, I can stack windows on Android, just how I can on iOS. But on master, the last window opened ignores all positioning, and is surrounded by a black background. It works on iOS. Attached are screenshots.

Reproduction

var win = Ti.UI.createWindow({
	backgroundColor: '#fff'
});
win.addEventListener('click', function(evt) {
	alert('1');
});
win.open();

var win2 = Ti.UI.createWindow({
	backgroundColor: '#0f0',
	top: 20, left: 20,
	width: 100, height: 100
});
win2.addEventListener('click', function(evt) {
	alert('2');
});
win2.open();

Attachments

FileDateSize
android.3.1.3.GA.png2013-09-30T01:19:18.000+000020479
android.master.png2013-09-30T01:19:18.000+000021144
ios.3.1.3.GA.png2013-09-30T01:19:18.000+000011186
ios.master.png2013-09-30T01:19:18.000+000011186

Comments

  1. Dawson Toth 2013-09-30

    Latest from 3_1_x works too, by the way. It just appears to be in master that I'm seeing this.
  2. Ping Wang 2013-10-01

    In the master branch (3.2.0), we deprecate the lightweight windows. If the developers want to use lightweight windows in 3.2.0, they have to enable the property "ti.android.useLegacyWindow" in the tiapp.xml:
       <property name="ti.android.useLegacyWindow" type="bool">true</property>
       
    Please refer to TIMOB-13796 for details. In the above test case, the two windows are LW windows so "ti.android.useLegacyWindow" need to be enabled when testing for 3.2.0. Resolve the ticket as Invalid.
  3. Lee Morris 2017-03-17

    Closing ticket as invalid.

JSON Source