Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23160] Windows: Activity Window opens with black background

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2016-04-07T03:56:21.000+0000
Affected Version/sRelease 5.2.1
Fix Version/sn/a
ComponentsWindows
Labelsappcelerator, look1, sdk-5.2.0, windows, windows-8, windowsphone
ReporterBinay Das
AssigneeKota Iguchi
Created2016-04-01T05:16:28.000+0000
Updated2018-08-02T22:20:02.000+0000

Description

I am trying to implement an Activity Indicator for our App. The code I am running is as follows :
var indicatorWindow = Ti.UI.createWindow({
    opacity : 1,
    backgroundColor : 'transparent'
});

var activityIndicator = Ti.UI.createActivityIndicator({
    message: 'Loading...'
});

indicatorWindow.add(activityIndicator);
indicatorWindow.addEventListener('indicatorShow', function(e) {
    indicatorWindow.open();
    activityIndicator.show();
});

indicatorWindow.addEventListener('indicatorHide', function(e) {
    activityIndicator.hide();
    indicatorWindow.close();
});
And then I am calling the following events from another page :
IndicatorWindow.fireEvent('indicatorShow');
Some task here...
IndicatorWindow.fireEvent('indicatorHide');
The Activity windows opens up with a Black background instead of a transparent one (see screenshot attached). The same code works on Android, iOS and Web though.

Attachments

FileDateSize
ActivityScreenshot.png2016-04-01T05:15:32.000+00006929
iPhone_6s_Plus_-_iPhone_6s_Plus___iOS_9_2__13C75_.png2016-04-07T03:58:29.000+000015268

Comments

  1. Binay Das 2016-04-01

    The issue is for Windows (Windows Phone on SDK 5.2.0). Not able to find any field to update this info so I am putting it as a comment :)
  2. Kota Iguchi 2016-04-07

    Tested on Windows, I was able to reproduce this. But on iOS, it shows black background too. So I think it's not a issue on Windows but it's a platform-specific behavior. I'm actually curious about how it should work, what kind of element should app show when "window is transparent"? I personally don't think it should show splash screen when Window is transparent. Test code:
       var win1 = Titanium.UI.createWindow({  
           title:'Tab 1',
           backgroundColor : 'transparent'
       });
       
       var tab1 = Titanium.UI.createTab({  
           title:'Tab 1',
           window:win1
       });
       
       var label1 = Titanium.UI.createLabel({
       	color:'#999',
       	text:'I am Window 1',
       	font:{fontSize:20,fontFamily:'Helvetica Neue'},
       	textAlign:'center',
       	width:'auto'
       });
       
       win1.add(label1);
       win1.open();
       
    !iPhone_6s_Plus_-_iPhone_6s_Plus___iOS_9_2__13C75_.png|thumbnail!
  3. Eric Merriman 2018-08-02

    Closing old "Won't fix" tickets. If you disagree, please reopen.

JSON Source