我需要一个透明的活动,
所以我用这种风格来实现它
它在模拟器中正常工作,但在Android设备中没有。
This is working in emulator but not in actual device.
I Always received App is not working..
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="Transparent" parent="AppTheme">
<item name="colorPrimary">@color/colorPopup</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:background">@android:color/transparent</item>
</style>