2016-12-12 24 views
0

Visual Studio xamarinを使用してナビゲーションドロワーを作成しようとすると、次のエラーが発生します。私はアンドロイドサポートリポジトリをsdkを使ってインストールしました。また、nagetを使ってxamarin.android.v7、... v4などをインストールしました。Android用ナビゲーションドロワーの作成に失敗しました

以下のエラーを引き起こしたと思いますか?おかげ

属性が見つかりませリソース識別子ん パッケージの 'layout_scrollFlags' 'Leftdrawerlayout.Leftdrawerlayout'

パッケージ 'Leftdrawerlayout.Leftdrawerlayout'

に属性 'メニュー' が見つかりませんリソース識別子

screenshot

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:orientation="vertical" 
    android:layout_width="match_parent" 
    android:fitsSystemWindows="true" 
    android:layout_height="match_parent"> 
    <android.support.v7.widget.Toolbar 
     android:id="@+id/toolbar" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:minHeight="?attr/actionBarSize" 
     android:background="#33B86C" 
     app:popupTheme="@style/ThemeOverlay.AppCompat.Light" 
     app:layout_scrollFlags="scroll|enterAlways" /> 
    <android.support.v4.widget.DrawerLayout 
     android:id="@+id/drawer_layout" 
     android:layout_height="match_parent" 
     android:fitsSystemWindows="true" 
     android:layout_width="match_parent"> 
     <RelativeLayout 
      android:orientation="vertical" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" /> 
     <android.support.design.widget.NavigationView 
      android:id="@+id/nav_view" 
      android:layout_height="match_parent" 
      android:layout_width="200dp" 
      android:layout_gravity="start" 
      android:fitsSystemWindows="true" 
      app:menu="@menu/menu" /> 
    </android.support.v4.widget.DrawerLayout> 
</LinearLayout> 
+0

あなたの投稿を編集して問題のコードを含めてください。 –

+0

こんにちはペッター、私はコードを含めている。私はエラーが私のXMLファイルにあると思う。私の謝罪、私はコーディングで初心者です。ありがとう –

答えて

0

layout_scrollFlagsの属性はandroid.support.designパッケージに属します。あなたがXamarin.Android.Support.Designを参照していることを確認してくださいNuget package

関連する問題