這個怎么可以錯呢 檢查好幾遍了
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
? ? android:layout_width="match_parent"
? ? android:layout_height="wrap_content"
? ? android:background="#000000"
? ? android:paddingBottom="10dp"
? ? android:paddingTop="10dp" >
? ? <TextView
? ? ? ? android:id="@+id/return"
? ? ? ? android:layout_width="wrap_content"
? ? ? ? android:layout_height="wrap_content"
? ? ? ? android:layout_alignParentLeft="true"
? ? ? ? android:layout_centerVertical="true"
? ? ? ? android:layout_marginLeft="10dp"
? ? ? ? android:text="返回"
? ? ? ? android:textColor="#ffffff"
? ? ? ? android:textSize="14sp" />
? ? <TextView
? ? ? ? android:id="@+id/title"
? ? ? ? android:layout_width="wrap_content"
? ? ? ? android:layout_height="wrap_content"
? ? ? ? android:layout_centerVertical="true"
? ? ? ? android:text="布局優化"
? ? ? ? android:textColor="#ffffff"
? ? ? ? android:textSize="18sp" />
? ? <TextView
? ? ? ? android:id="@+id/function"
? ? ? ? android:layout_width="wrap_content"
? ? ? ? android:layout_height="wrap_content"
? ? ? ? android:layout_alignParentRight="true"
? ? ? ? android:layout_centerVertical="true"
? ? ? ? android:layout_marginRight="10dp"
? ? ? ? android:text="功能"
? ? ? ? android:textColor="#ffffff"
? ? ? ? android:textSize="14sp" />
</RelativeLayout>
2016-07-01
提示第一個TestView的id名稱不能為return,改了一下沒有報錯