我試圖做一個適配器上一個ListView作爲練習,但我得到該行佈局奇怪的錯誤:相對佈局不編譯!
error: Error parsing XML: unbound prefix
什麼是錯的這個非常簡單的佈局?!?
<?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="wrap_content">
<TextView
android:id="@+id/station"
android:text="Stazione DI"
android:layout_alignParentTop="true"
android:padding="3dip"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView
androdi:id="@+id/time"
android:text="Time:"
android:layout_alignParentLeft="true"
android:below="@id/station"/>
<TextView
androdi:id="+id/late"
android:text="Time:"
android:layout_toRightOf="@id/time"
android:below="@id/station"/>
<TextView
androdi:id="+id/rail"
android:text="Rail:"
android:below="@id/station"
android:layout_toRightOf="@id/late"/>
</RelativeLayout>
感謝名單... Android的XML調試也很痛苦.... – Mascarpone 2011-02-01 13:22:52