7

I'm making a GridView that's suppose to view images with text. The images are taken from url's and my problem is that they're not loaded.

Inside a grid item template I have this element:

<Mvx.MvxImageView
    android:id="@+id/gridItemImage"
    android:layout_width="fill_parent"
    android:layout_height="25dp"
    android:layout_alignParentLeft="true"
    android:layout_alignParentRight="true"
    android:scaleType="fitXY"
    local:MvxBind="ImageUrl Image" />

The property that ImageUrl is bound too looks like this:

public string Image
{
    get
    {
        return @"http://some.image/on/the/Internet.png";
    }
}

It actually calls a private field, but I've written the test value I'm setting.

My question is: What should I do to properly bind ImageUrl and get it to show in the grid?

Iain Smith
  • 9,230
  • 4
  • 50
  • 61
Maurice Klimek
  • 930
  • 5
  • 13
  • 48

1 Answers1

10

What Plugins do you have installed?

Have you installed DownloadCache, File and JSON plugins on both the Core and Droid project?

Update

To properly bind to the ImageUrl of a MvxImageView you have to: have the Mvvmcross DownloadCache, File and JSON plugins on both the Core and Droid project.

These are the plugins you need: enter image description here

Iain Smith
  • 9,230
  • 4
  • 50
  • 61
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - [From Review](/review/low-quality-posts/12208320) – Ro Yo Mi May 01 '16 at 14:14
  • 1
    Sorry I have updated my answer, assuming the author had missed out in the plugins. – Iain Smith May 01 '16 at 14:31
  • Yes, I did missed out the plugins. I'm fairly new to MVVMCross :-) We managed to implement the plugin, and it works now. Thanks, Iain :-) – Maurice Klimek May 12 '16 at 12:44
  • 1
    No worries, glad to help – Iain Smith May 12 '16 at 12:47
  • I didn't have to install the plugins on the core project. and it worked for me. But installing the plugins on the droid project definitely helped. – Terry Mosoma Sep 25 '17 at 19:51
  • @IainSmith, I really appreciate your (all who works on MvvmCross) work, and I believe it's really cool framework, and I just love using it, but you (we) have to do something with documentation! That's just a nightmare! For so many years! To find out how to use the MvxImageView I have to search for answers like "MvxImageView" not working. There is also a Stuart's video regarding the loader, but there are no (at least, easy accessible) details of how to use it in Android Views design, for instance. – Agat Jan 03 '18 at 20:42
  • @Agat I agree Xamarin is not so bad idea. But working with Visual Studio on Mac is a real nightmare! Especially when you have and app with >20 screens. I have to say I'd implement it faster as a native app. – Micer Mar 20 '18 at 21:23
  • @Micer, you are not quite following the article. The topic about is about MvvmCross framework in particular. Xamarin still is as it is, which is kind of irrelevant to native apps comparison. – Agat Apr 02 '18 at 10:10