Possible overdraw: Root element paints background

To optimize your apps performance (avoid overdraw), you can do the following:

  • declare a theme in res/values/styles.xml

    <style name="MyTheme" parent="android:Theme">
        <item name="android:background">@drawable/main</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowFullscreen">true</item>
    </style>
    

  • change the Manifest:

    <application
        android:icon="@drawable/ic_logo"
        android:label="@string/app_name"
        android:theme="@style/MyTheme" >
    
  • remove the background declaration in “My xml”

Leave a Comment