Xamarin.android MvvmCross MvxHttpImageView错误

Xamarin.android MvvmCross MvxHttpImageView错误,xamarin.android,mvvmcross,Xamarin.android,Mvvmcross,我正在尝试使用Xamarin.Android和mvvmcross在Android上的listview中绑定一个web图像。不过我有这个错误 MvxBind:错误:找不到7.13视图类型-Mvx.MvxHttpImageView Android.Views.InflateException:二进制XML文件行#1:膨胀类Mvx.MvxHttpImageView时出错 这是我的axml <?xml version="1.0" encoding="utf-8"?> <LinearLa

我正在尝试使用Xamarin.Android和mvvmcross在Android上的listview中绑定一个web图像。不过我有这个错误

MvxBind:错误:找不到7.13视图类型-Mvx.MvxHttpImageView Android.Views.InflateException:二进制XML文件行#1:膨胀类Mvx.MvxHttpImageView时出错

这是我的axml

<?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.mynamespace.android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

<LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

    <Mvx.MvxHttpImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:id="@+id/iconeView"
                    local:MvxBind="{'HttpImageUrl':{'Path':'imageUrl'}}" />
    <TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:textSize="30dp"
            local:MvxBind="Text name" />
    <TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:textSize="10dp"
            local:MvxBind="Text tagline" />
</LinearLayout>


如果您使用的是v3,请尝试

  • MvxImageView
    而不是
    MvxHttpImageView
  • ImageUrl
    而不是
    HttpImageUrl
绑定视图位于

我认为MvxImageView也在以下章节中讨论:

您还需要包含MvvmCross文件和DownloadCache插件,否则会出现此错误

“未注册IMvxImageHelper-在使用MvxImageView之前,必须提供图像帮助程序”


另外,旧的json语法在v3中默认情况下被禁用-因此此语法在本地不起作用:MvxBind=“{'HttpImageUrl':{'Path':'imageUrl'}”