2014-10-29 89 views
1

我的应用程序中有很多透支,导致我完全禁用窗口背景。升级到appcompat v21后,decorview再次具有纯色背景(其primaryColor)。我尝试以下禁用它:从appcompat v21删除窗口背景

<style name="AppBaseTheme" parent="Theme.Guidantswhite"> 
     <item name="android:windowBackground">@null</item> 
</style> 

或在我的基本主题:

<style name="Theme.Guidantswhite" parent="@style/Theme.AppCompat.Light.NoActionBar"> 
    <item name="android:windowBackground">@android:color/transparent</item> 
    <item name="android:colorBackgroundCacheHint">@null</item> 
    <item name="android:windowIsTranslucent">true</item> 
    <!-- Main theme colors --> 
    <!-- your app's branding color (for the app bar) --> 
    <item name="colorPrimary">@color/bgo_highlight</item> 
</style> 

将是任何指针感激。

回答

0

在我的代码中,我将decorview的背景设置为状态栏。也许你有相同的功能?