Recently, a feature has been developed that requires the implementation of a translucent activity that was previously implemented by setting the Android:theme= "@android: Style/theme.translucent" in Androidmanifest. Results The QA students found that the Meizu mobile phone will appear as an opaque gray effect. Later, the activity's layout file is set android:background= "@color/transparent", or does not work.
The idea was to use the Alpha property of window instead, setting the alpha of windowmanager.layoutparams to 0.5 to achieve transparency, but all the controls on the activity would become translucent.
During debugging, it was found that the window had a setbackgrounddrawable interface and tried it through the GetWindow (). Setbackgrounddrawable () method, Pass in a translucent. 9 image as a background, it is possible to achieve translucent effects on Meizu phones.
Meizu phones cannot display transparent activity solutions by setting style and background