样式在模拟器中工作但不在实际设备中

时间:2017-08-08 11:11:13

标签: android android-theme

我需要一个透明的活动,
所以我用这种风格来实现它 它在模拟器中正常工作,但在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>

0 个答案:

没有答案