Meaning of the warning: Possible overdraw

0

I have an application that is showing warning :

  

Possible overdraw: Root element paints background   @ color / md_elegance_green with a theme that also paints a background (inferred theme is   @android: style / Theme_Black_NoTitleBar_Fullscreen)

The image illustrates the moment of the event:

I did some research but I could not understand it very well. What does overdraw mean? How should I do the treatment so that this warning does not appear anymore?

    
asked by anonymous 04.10.2016 / 18:38

1 answer

1

declares your theme in the file: res / values / styles.xml

<style name="MeuTema" parent="android:Theme">
    <item name="android:background">@color/md_elegance_green</item>
</style>

And use this theme in Manifest.xml

android:theme="@style/MeuTema"

// EDIT

parent="android: Theme" you put a top theme. In your case I believe it would be Theme_Black_NoTitleBar_Fullscreen

    
04.10.2016 / 19:11