在运行Android Lint时,我遇到了这个警告:
可能会出现过度绘制:根元素使用了带有背景的主题@drawable/main,并且该主题也绘制了一个背景。
推断的主题是@android:style/Theme.NoTitleBar.Fullscreen
有人可以解释一下为什么会出现这个警告,以及如何去除它吗?
我的XML代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/main" //***LINT warning***
android:orientation="vertical"
android:weightSum="3" >
主题定义在清单中的部分
<application
android:icon="@drawable/ic_logo"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >