Possible overdraw: Root element paints background

后端 未结 1 2059
鱼传尺愫
鱼传尺愫 2021-02-10 15:52

In my application, it appears this warning on the lints of Android:

Possible overdraw: Root element paints background @drawable/main with a theme that a

相关标签:
1条回答
  • 2021-02-10 16:19

    Neil Sainsbury, at http://www.earthtoneil.com/, says that Romain Guy has addressed the underlying issue at http://android-developers.blogspot.com/2009/03/window-backgrounds-ui-speed.html. See Neil's blog and search for your error message. Then, go to http://developer.android.com/guide/topics/ui/themes.html to learn how to apply background themes to the app as a whole and to individual activities.

    This approach will at least cause the error message to no longer appear. Hitting the two-arrows icon to refresh the warnings in the lint window after making the fix was necessary in my case.

    0 讨论(0)
提交回复
热议问题