直接换就行了啊 。 。 。。 将RelativeLayout相关属性都去掉

解决方案 »

  1.   

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".MainActivity" >    <TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/hello_world" /></LinearLayout>
      

  2.   

    把所有的RelativeLayout换成LinearLayout 就行,换好以后要重新排一下
      

  3.   

    怎么看是相关属性,
    看android developer 官网上面 该布局部分
      

  4.   

    RelativeLayout 改成LinearLayout就行了。相关属性的话,比如说RelativeLayout中的控件,是可以加android:layout_centerInParent属性的,而这些属性在LinearLayout中是不起作用的