2017-08-04 4 views
0

からプロジェクトのリソースにアクセスすることができない私は、私には意味をなさないここでカップルのエラーを取得しています:ここはAPK/RES-自動名前空間

はコードです:

<?xml version="1.0" encoding="utf-8"?> 
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:id="@+id/DrawerLayout" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 
<!-- The main content view --> 
    <RelativeLayout 
     android:layout_width="match_parent" 
     android:layout_height="match_parent"> 
     <android.support.design.widget.AppBarLayout 
      android:layout_height="wrap_content" 
      android:layout_width="match_parent" 
      android:id="@+id/ToolbarLayout"> 
      <include 
       android:id="@+id/Toolbar" android:layout="@layout/Toolbar"/><!-- AVAILABLE HERE --><!-- app:layout_scrollFlags="scroll|enterAlways"--> 
     </android.support.design.widget.AppBarLayout> 
     <FrameLayout 
      android:id="@+id/ContentFrame" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:layout_below="@+id/ToolbarLayout"/> 
    </RelativeLayout> 
    <android.support.design.widget.NavigationView 
     android:id="@+id/NavView" 
     android:layout_width="wrap_content" 
     android:layout_height="match_parent" 
     app:headerLayout="@layout/Toolbar" 
     app:menu="@menu/Toolbar" />  <!-- NOT AVAILABLE HERE --> 
     <!--app:headerLayout="@layout/NavHeader" 
     app:menu="@menu/NavMenu" 
      android:layout_gravity="start"--> 
</android.support.v4.widget.DrawerLayout> 

、ここでエラーリストです:

Errors ツールバーは、includeタグで参照されているようにはっきりと存在しますが、app名前空間を使用する2つのプロパティでは使用できません。

何が起こっているのか分かりませんか?

答えて

0

リソースの名前には大文字を使用できません。したがって、この場合、私はhttps://bugzilla.xamarin.com/show_bug.cgi?id=36821

でシステムを発券xamarinsで見つけ

リソースをtoolbar.axmlするために私Toolbar.axmlを変更する必要が