2012-04-13 27 views
0

未綁定前綴的錯誤,我得到了我的axml一個問題:在AXML

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/optionLayout" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:background="@color/white_transparent" 
    android:orientation="vertical" > 

    <LinearLayout 
     android:id="@+id/headerLayout" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:orientation="horizontal" > 

     <TextView 
      android:id="@+id/startTextView" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:textColor="@color/black" 
      android:layout_weight="1" 
      android:text="@string/start" /> 

    (X) <TextView 
      android:id="@+id/startDateTextView" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      andorid:textColor="@color/black" 
      android:layout_weight="1" 
      android:text="Mon, 13:30" /> 

     <TextView 
      android:id="@+id/endTextView" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      andorid:textColor="@color/black" 
      android:layout_weight="1" 
      android:text="@string/end" /> 

     <TextView 
      android:id="@+id/endDateTextView" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      andorid:textColor="@color/black" 
      android:layout_weight="1" 
      android:text="Mon, 14:30" /> 

    </LinearLayout> 
</LinearLayout> 

在(X)標記的位置我有一個綁定前綴錯誤(如果我刪除這個TextView的標記在接下來的TextView錯誤)。第一個TextView正在工作。所有其他人都沒有。我想念什麼?

回答

3

相反的:

andorid:textColor="@color/black" 

寫:

android:textColor="@color/black" 

你寫android錯了。