[TIMOB-23160] Windows: Activity Window opens with black background
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2016-04-07T03:56:21.000+0000 |
| Affected Version/s | Release 5.2.1 |
| Fix Version/s | n/a |
| Components | Windows |
| Labels | appcelerator, look1, sdk-5.2.0, windows, windows-8, windowsphone |
| Reporter | Binay Das |
| Assignee | Kota Iguchi |
| Created | 2016-04-01T05:16:28.000+0000 |
| Updated | 2018-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
| File | Date | Size |
|---|---|---|
| ActivityScreenshot.png | 2016-04-01T05:15:32.000+0000 | 6929 |
| iPhone_6s_Plus_-_iPhone_6s_Plus___iOS_9_2__13C75_.png | 2016-04-07T03:58:29.000+0000 | 15268 |
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 :)
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:
!iPhone_6s_Plus_-_iPhone_6s_Plus___iOS_9_2__13C75_.png|thumbnail!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();Closing old "Won't fix" tickets. If you disagree, please reopen.