Set android:windowContentOverlay to null so that there will be not "shadow" on pre-21

This commit is contained in:
RikkaW 2020-09-13 16:51:20 +08:00 committed by John Wu
parent 851b676077
commit d5a7a75d9d

View File

@ -3,12 +3,14 @@
<style name="SplashThemeBase" parent="android:Theme.DeviceDefault.NoActionBar"> <style name="SplashThemeBase" parent="android:Theme.DeviceDefault.NoActionBar">
<item name="android:windowBackground">@drawable/ic_splash_activity</item> <item name="android:windowBackground">@drawable/ic_splash_activity</item>
<item name="android:windowContentOverlay">@null</item>
</style> </style>
<style name="SplashTheme" parent="SplashThemeBase" /> <style name="SplashTheme" parent="SplashThemeBase" />
<style name="Foundation" parent="Theme.MaterialComponents.DayNight.NoActionBar"> <style name="Foundation" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="android:windowBackground">?colorSurface</item> <item name="android:windowBackground">?colorSurface</item>
<item name="android:windowContentOverlay">@null</item>
</style> </style>
<!--This should be overridden in v21 for transparency, etc--> <!--This should be overridden in v21 for transparency, etc-->