eclipse的一个叹号提示我难题
eclipse提示:
This RelativeLayout layout or its LinearLayout parent is possibly
useless; transfer the background attribute to the other view
但实测都有用,怎么处理这个提示?
奉上代码:
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/widget52"android:layout_width="fill_parent"android:layout_height="fill_parent"android:orientation="vertical"android:background="@drawable/beijing_heng" ><!-- 横向 --><RelativeLayoutandroid:id="@+id/widget54"android:layout_width="fill_parent"android:layout_height="fill_parent"><ImageViewandroid:id="@+id/widget01"android:layout_width="fill_parent"android:layout_height="wrap_content"android:src="@drawable/ling_dang"android:contentDescription="@string/hello"android:paddingTop="10dip"></ImageView><ImageViewandroid:id="@+id/widget02"android:layout_width="fill_parent"android:layout_height="wrap_content"android:src="@drawable/plm"android:contentDescription="@string/hello"android:paddingTop="80dip"></ImageView><ImageViewandroid:id="@+id/widget03"android:layout_width="fill_parent"android:layout_height="wrap_content"android:src="@drawable/jiantou_you"android:contentDescription="@string/hello"android:paddingTop="150dip"></ImageView></RelativeLayout></LinearLayout>