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>
將是任何指針感激。