Xamarin.android MvvmCross MvxHttpImageView错误
我正在尝试使用Xamarin.Android和mvvmcross在Android上的listview中绑定一个web图像。不过我有这个错误 MvxBind:错误:找不到7.13视图类型-Mvx.MvxHttpImageView Android.Views.InflateException:二进制XML文件行#1:膨胀类Mvx.MvxHttpImageView时出错 这是我的axmlXamarin.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
<?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
另外,旧的json语法在v3中默认情况下被禁用-因此此语法在本地不起作用:MvxBind=“{'HttpImageUrl':{'Path':'imageUrl'}”