Project: titanium
Issue TIMOB-16493: Android: Let `transparent` or alpha channel trigger transparent background on heavyweight windows
To have a transparent or non-opaque (heavyweight) window on Android, you have to set {{opacity}} to any value, including {{1.0}}. As you can see on [line 268 of the WindowProxy|https://github.com/appcelerator/titanium_mobile/blob/c7c578c6ce8286195be7019c2165d4de62b202c7/android/modules/ui/src/java/ti/modules/titanium/ui/WindowProxy.java#L268] this triggers the actual Window to have a transparent background (triggering the Translucent theme. The you can use {{backgroundColor:transparent}} or {{backgroundColor:#5FFF}} even if you leave {{opacity:1.0}} because you want to leave the actual contents the window opaque. As #TIMOB-16353 shows this is highly confusing, even for Appcelerator support ;) I would ask for {{backgroundColor::transparent}} and colors including an alpha-channel like {{#5FFF}} to trigger the transparent background as well. h1. Doesn't work {code} Ti.UI.createWindow({ backgroundColor: 'transparent' }); {code} h1. Works {code} Ti.UI.createWindow({ backgroundColor: 'transparent', opacity: 1.0 }); {code}
Story points: 3