2015-01-02 78 views
1

解決方案運行良好,直到我將菜單添加到應用程序並構建,它給了我上面的錯誤。我的代碼如下:在'AndroidApp.Droid'包中找不到屬性'MvxBind'的資源標識符

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:local="http://schemas.android.com/apk/res/AndroidApp.Droid" 
    android:id="@+id/drawer_layout" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 
<!-- The main content view --> 
    <FrameLayout 
     android:id="@+id/content_frame" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" /> 
    <Mvx.MvxListView 
     local:MvxBind="ItemsSource MenuItems; ItemClick SelectMenuItemCommand" 
     local:MvxItemTemplate="@layout/item_menu" 
     android:id="@+id/left_drawer" 
     android:divider="@android:color/transparent" 
     android:dividerHeight="0dp" 
     android:choiceMode="singleChoice" 
     android:layout_width="240dp" 
     android:layout_height="match_parent" 
     android:layout_gravity="start" 
     android:background="#111" /> 
</LinearLayout> 

任何解決方案對此?我試過 1)xmlns:local =「http://schemas.android.com/apk/res/AndroidApp.Droid」和 2)xmlns:local =「http://schemas.android.com/apk/res-auto 但它現在不工作 在此先感謝

+0

您是否在_Resources/Values_文件夾中有文件_MvxBindingAttributes.xml_?它應該在默認情況下存在,但可能會被意外刪除。 – Kiliman

回答

4

一些方法,一些參考沒有得到正確的,請清理並建立您的項目,如果仍然有問題,然後檢查您的包名稱也我希望這是對你有用。從清單

3

包名稱必須相同與

xmlns:local="http://schemas.android.com/apk/res/Sample.Android" 

enter image description here

相關問題