2013-11-27 72 views
0

我搜索了一下,發現有一些真的在這裏吃了類似的問題,但我嘗試了出現的解決方案,但沒有解決我的問題。解析XML時的錯誤:在學校網站中的未綁定前綴

和我有錯誤未綁定的前綴,在該XML

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:ProgressWheel="http://schemas.android.com/apk/res/com.visualdenim.schooltraq" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:orientation="vertical" 
android:background="#FFFFFF" > 

     <com.example.progressbar.ProgressWheel 
      android:id="@+id/progressBarTwo" 
      android:layout_width="150dp" 
      android:layout_height="150dp" 
      ProgressWheel:text="Click\none of the\nbuttons" 
      ProgressWheel:textColor="#222222" 
      ProgressWheel:textSize="14sp" 
      ProgressWheel:rimColor="#44000000" 
      ProgressWheel:barLength="60dp" 
      ProgressWheel:barColor="#339BB9" 
      ProgressWheel:barWidth="25dp" 
      ProgressWheel:rimWidth="25dp" 
      ProgressWheel:spinSpeed="3dp" /> 
    </LinearLayout> 

     <com.example.progressbar.ProgressWheel 
      android:id="@+id/progressBarThree" 
      android:layout_width="150dp" 
      android:layout_height="150dp" 
      ProgressWheel:text="" 
      ProgressWheel:textColor="#222222" 
      ProgressWheel:textSize="14sp" 
      ProgressWheel:rimColor="#44000000" 
      ProgressWheel:circleColor="#2E9121" 
      ProgressWheel:barLength="20dp" 
      ProgressWheel:barColor="#8000" 
      ProgressWheel:barWidth="25dp" 
      ProgressWheel:rimWidth="25dp" 
      ProgressWheel:spinSpeed="-1dp" /> 

     <com.example.progressbar.ProgressWheel 
      android:id="@+id/progressBarFour" 
      android:layout_width="50dp" 
      android:layout_height="50dp" 
      ProgressWheel:text="" 
      ProgressWheel:textColor="#222222" 
      ProgressWheel:textSize="14sp" 
      ProgressWheel:rimColor="#4000" 
      ProgressWheel:barLength="30dp" 
      ProgressWheel:barColor="#222" 
      ProgressWheel:barWidth="4dp" 
      ProgressWheel:rimWidth="1dp" 
      ProgressWheel:spinSpeed="30dp" 
      ProgressWheel:delayMillis="75" /> 

</RelativeLayout> 
+0

什麼是烏拉圭回合在這裏包的名字??? –

回答

1

更改您的包名

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:ProgressWheel="http://schemas.android.com/apk/res/com.example.progressbar" // changed 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:orientation="vertical" 
android:background="#FFFFFF" > 

     <com.example.progressbar.ProgressWheel 
      android:id="@+id/progressBarTwo" 
      android:layout_width="150dp" 
      android:layout_height="150dp" 
      ProgressWheel:text="Click\none of the\nbuttons" 
      ProgressWheel:textColor="#222222" 
      ProgressWheel:textSize="14sp" 
      ProgressWheel:rimColor="#44000000" 
      ProgressWheel:barLength="60dp" 
      ProgressWheel:barColor="#339BB9" 
      ProgressWheel:barWidth="25dp" 
      ProgressWheel:rimWidth="25dp" 
      ProgressWheel:spinSpeed="3dp" /> 
    </LinearLayout> 

     <com.example.progressbar.ProgressWheel 
      android:id="@+id/progressBarThree" 
      android:layout_width="150dp" 
      android:layout_height="150dp" 
      ProgressWheel:text="" 
      ProgressWheel:textColor="#222222" 
      ProgressWheel:textSize="14sp" 
      ProgressWheel:rimColor="#44000000" 
      ProgressWheel:circleColor="#2E9121" 
      ProgressWheel:barLength="20dp" 
      ProgressWheel:barColor="#8000" 
      ProgressWheel:barWidth="25dp" 
      ProgressWheel:rimWidth="25dp" 
      ProgressWheel:spinSpeed="-1dp" /> 

     <com.example.progressbar.ProgressWheel 
      android:id="@+id/progressBarFour" 
      android:layout_width="50dp" 
      android:layout_height="50dp" 
      ProgressWheel:text="" 
      ProgressWheel:textColor="#222222" 
      ProgressWheel:textSize="14sp" 
      ProgressWheel:rimColor="#4000" 
      ProgressWheel:barLength="30dp" 
      ProgressWheel:barColor="#222" 
      ProgressWheel:barWidth="4dp" 
      ProgressWheel:rimWidth="1dp" 
      ProgressWheel:spinSpeed="30dp" 
      ProgressWheel:delayMillis="75" /> 

</RelativeLayout> 
+0

感謝您的幫助:)謝謝 – HideCode

+0

如果你發現它有用,upvote它...謝謝你... –

相關問題