相关疑难解决方法(0)

"可能的透支:根元素绘制背景"

在我的项目上运行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" >
Run Code Online (Sandbox Code Playgroud)

清单中定义主题的部分

 <application
        android:icon="@drawable/ic_logo"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
Run Code Online (Sandbox Code Playgroud)

android android-manifest android-theme

28
推荐指数
2
解决办法
2万
查看次数

标签 统计

android ×1

android-manifest ×1

android-theme ×1