【发布时间】:2016-04-01 19:16:47
【问题描述】:
我正在开发 Android 4 及更高版本的应用程序。 一层生成此警告:此ScrollView 布局或其RelativeLayout 父级可能无用;将背景属性转移到另一个视图
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000"
android:orientation="vertical" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp" >
<WebView
android:id="@+id/about"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layerType="software" />
</ScrollView>
</RelativeLayout>
我该如何解决这个警告?
【问题讨论】:
-
如果以下任何答案回答了您的问题,请将其标记为答案。
标签: android