刚升级到最新的Xamarin,现在当我构建我的MvvmCross安卓应用时,我收到以下错误:
(0,0):错误:找不到属性' MvxBind'在包' com.xxx' (YYY)
我在使用MvvmCross属性的每个文件都收到此错误:MvxBind和MvxItemTemplate
我的MvvmCrossAttr.xml文件如下所示:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--<declare-styleable name="CustomFonts">
<attr name="customFont" format="string" />
</declare-styleable>-->
<declare-styleable name="MvxBinding">
**<attr name="MvxBind" format="string"/>**
<attr name="MvxLang" format="string"/>
</declare-styleable>
<declare-styleable name="MvxListView">
<attr name="MvxItemTemplate" format="string"/>
<attr name="MvxDropDownItemTemplate" format="string"/>
<attr name="GroupItemTemplate" format="string"/>
</declare-styleable>
<item type="id" name="MvxBindingTagUnique"/>
<item type="id" name="MvxBindableListItemTagUnique"/>
<declare-styleable name="MvxImageView">
<attr name="MvxSource" format="string"/>
</declare-styleable>
</resources>
这就是我在布局文件中使用它的方式:
<?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/com.xxx"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/shape_search_property_button_border"
android:clickable="true"
local:MvxBind="Click NavigateToRestaurantCommand"
android:padding="1dp">
...
这非常令人沮丧。有什么想法吗?