2013-06-20 68 views
3

我最近在Layout和清單文件中得到了此警告。 我附上了下面這些圖片,只是爲了進一步澄清檢查。xml中的Android Studio未知屬性和未綁定的名稱空間

問題是我得到命名空間「未綁定的警告,我不能使用,一般可用於Android的studio.Please幫助這個問題對XML文件的自動完成代碼。 顯示未知的XML屬性警告對於

http://i39.tinypic.com/2rr55k1.png

http://i41.tinypic.com/2ns2s0w.png

<?xml version="1.0" encoding="utf-8"?> 

<RelativeLayout 
       xmlns:android="http://schemas.android.com/apk/res/android" 
       android:orientation="vertical" 
       android:layout_width="match_parent" 
       android:layout_height="match_parent" 

       > 
    <RelativeLayout 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:background="@color/blue" 

      > 
    <TextView 
     android:id="@+id/textView1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="text" 
     android:textColor="@android:color/white" 
     android:textAppearance="?android:attr/textAppearanceLarge" 
     android:layout_margin="10dp" 
     android:layout_above="@+id/editText" 
     android:layout_alignLeft="@+id/editText" 
     android:layout_marginBottom="15dp"/> 
    <EditText 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:inputType="number" 
      android:ems="15" 
      android:padding="10dp" 
      android:id="@+id/editText" android:layout_gravity="center" 
      android:layout_centerInParent="true" 
      android:background="@color/white"/> 
    </RelativeLayout> 

</RelativeLayout> 

回答

3

要解決類似的問題,每一個Android的屬性,我只是改變了一些在應用搖籃文件並再次同步該項目。