虽然在我的项目运行Android皮棉我碰到这个警告是“可能透支:根元素绘制背景”
可能透支:根元素绘制背景@绘制/主要与 一个主题,这也描绘了一个背景
其中推断的主题是@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" >
怎么样,如果我需要为应用程序的某些部分设置不同的背景? – Franco 2014-06-21 05:09:35
@Franco只需为您的视图创建一个单独的样式,其中包含背景项目。我知道,这只是一个解决方法,所以你可以设置工具:ignore =“Overdraw”。 – Ov3r1oad 2014-07-29 12:35:23
@Franco你可以让他们参与不同主题的不同活动。 – 2015-10-08 12:16:50