Search code examples
androidbindingxamarinmvvmcross

MVVMCross : How to bind ImageView to local Image (saved in SD Card)


I want to bind my ImageView control to my property URL (it's my image local path like this : /storage/emulated/0/MyFolder/IMG_20160411_094834.JPEG

I try to bind my control like this :

 <ImageView
    android:src="@android:drawable/ic_menu_gallery"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/ImagePreview"
    local:MvxBind="ImageUrl ImagePath" />

ImagePath is my property but i can't use this method.

Can you help me ?

Thank you


Solution

  • You have to use Mvx.MvxImageView.

    Changing ImageView to Mvx.MvxImageView should fix it.

    Ensure, that you have installed the

    in your android and core project.