Change Split Screen Expanding Color Android

278 Views Asked by At

When in the Clock app AND in split screen mode AND expanding, the background color of the expanding part is blue like the rest of the app. I'm referring to the part circled in red.

Clock app expanding part

In my app the expanding part color is white, how can I change it to a custom color?

1

There are 1 best solutions below

0
Punpuf On BEST ANSWER

You can do this this by setting the window's background.

In your xml style:

<style name="YourTheme">
    <item name="android:windowBackground">@color/your_color</item>
</style>

Or you can do it programmatically:

getWindow().setBackgroundDrawableResource(R.color.your_color);