Skip to content Skip to sidebar Skip to footer

Windowbackground In Android 6 (marshmallow)

I have defined a base style for my application with the following element: @color/window_background Which has set the back

Solution 1:

I used to have a same problem, but I found out by trying that if I commented actionBarTheme in my styles, it started to work suddenly. I dug deeper in my styles and found out that the style of action bar was setting a android:background attribute after commenting it out everything works now as expected.

Solution 2:

If you're using Android Studio 1.4 or higher go to styles where your theme is located and click "Open Editor" in the upper right hand corner. Then change your window background there. It should be under "android:colorBackground"

Solution 3:

How about setting both windowBackground and colorBackground

<item name="android:windowBackground">@color/window_background</item>
<item name="android:colorBackground">@color/window_background</item>

Post a Comment for "Windowbackground In Android 6 (marshmallow)"